Comments (10)
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.
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.
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.
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.
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.
prebuilt versions is fine.
bootstrap also provides basic css build for simple usage and sass files for advanced one
from nordnet-ui-kit.
take a look at d402470 @iamstarkov, now it'll build a px version of every entrypoint. What do you think?
from nordnet-ui-kit.
seems like a good solution
from nordnet-ui-kit.
is it published already?
from nordnet-ui-kit.
yes it is
from nordnet-ui-kit.
Related Issues (20)
- Remove border-radius from Dropdown
- Add style resets for common tags in theme
- Add common circle option to icons
- New yellow colour HOT 1
- Small adjustment for LabeledValue xlg HOT 1
- Prevent tooltip from going off the screen on mobile HOT 1
- v2 HOT 2
- Breakpoints should allow targeting of mobile HOT 7
- Props should not assume percentages
- Reduce inline styles on `SolidArrowUp`
- Inconsistencies
- Subsection SSR and resize issues HOT 1
- Clean up Info and Advice icons HOT 2
- Add colors to the documentation HOT 3
- unnecessary curly brackets for string props in documentation HOT 5
- Make tooltip accessable HOT 1
- Modernize our testing environment HOT 1
- Avoid running tests twice in CI HOT 1
- Investigate possibility of converting test framework to jest HOT 1
- TODO for renovate HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nordnet-ui-kit.