Giter VIP home page Giter VIP logo

Comments (10)

iamstarkov avatar iamstarkov commented on September 15, 2024

For internal use cases that's fine, but if external consumer will be asked to build sass templates if they don't use rem, then it can be a problem

from nordnet-ui-kit.

GU5TAF avatar GU5TAF commented on September 15, 2024

Why wouldn't the proposed solution work for external consumers?

$use-rem: false;
@import '~nordnet-ui-kit/src/button/button';

I'd need to add an index.scss file that would allow doing it on the bundle as well though.

from nordnet-ui-kit.

GU5TAF avatar GU5TAF commented on September 15, 2024

We could of course also prebuild px versions and include them in the dist folder, should be pretty easy using sass-loader environment variables.

from nordnet-ui-kit.

iamstarkov avatar iamstarkov commented on September 15, 2024

Why wouldn't the proposed solution work for external consumers?

if they are not using sass themself, then they would need to add node-sass to their deps and wait for it to install and to process their css every time they change smth.

I'd need to add an index.scss file that would allow doing it on the bundle as well though.

that would be the best solution

from nordnet-ui-kit.

GU5TAF avatar GU5TAF commented on September 15, 2024

That's a valid point, if they want to make any other changes to the UI kit they'd have to do that anyway but I get where you're coming from. Adding an index.scss file would also require that.

Do you prefer the idea of including prebuilt px versions @iamstarkov? That's what I'm leaning towards right now.

from nordnet-ui-kit.

iamstarkov avatar iamstarkov commented on September 15, 2024

prebuilt versions is fine.

bootstrap also provides basic css build for simple usage and sass files for advanced one

from nordnet-ui-kit.

GU5TAF avatar GU5TAF commented on September 15, 2024

take a look at d402470 @iamstarkov, now it'll build a px version of every entrypoint. What do you think?

from nordnet-ui-kit.

iamstarkov avatar iamstarkov commented on September 15, 2024

seems like a good solution

from nordnet-ui-kit.

iamstarkov avatar iamstarkov commented on September 15, 2024

is it published already?

from nordnet-ui-kit.

GU5TAF avatar GU5TAF commented on September 15, 2024

yes it is

from nordnet-ui-kit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.