Comments (7)
hmm. interesting.
Perhaps when we add our includes paths we only add 'node_modules' and not the full path to decanter. So to get everything your import would be:
@import 'decanter/decanter';
and to get at portions it would be
@import 'decanter/core/utilities/utilities';
from decanter.
This would be versus what we have when our include paths are set to 'node_modules/decanter'
eg:
@import 'decanter';
@import 'core/utilities/utilities';
from decanter.
I thought about that, but that has other implications. This allows us to namespace rollups, without having to remove underscores. So any '_decanter-*' file we know is a rollup, and doesn't contain actual funtionality, plus, when importing, this makes it clearer when you are calling a decanter-specific rollup versus your own.
I'm ok with actual mixins, base files, functions, etc not being namespaced, but namespacing the rollup files gives us much more flexibility when developing.
so,
@import 'utilities/decanter-utilities';
vs @import 'decanter/utilities/utilities
vs @import utilities/utilities;
from decanter.
(there's something that feels dangerous about adding npm path to our scss import paths, vs adding individual components, but I haven't quite figured out what.)
from decanter.
From what I have seen a number of projects are using this: http://eyeglass.rocks/
I haven't fully grokked it yet but this seems to be a standard or convention for managing node modules in sass.
from decanter.
I believe both bourbon and neat can be eyeglass modules. I haven't quite grokked it yet, so i've been kicking that can down the road, since I don't want to add too much weight to our libraries
from decanter.
(this can be closed)
from decanter.
Related Issues (20)
- Form Hierarchy: Borders HOT 1
- Add a document link icon HOT 3
- Add aria-labels to <svg> elements. HOT 5
- Search field HOT 1
- Time picker HOT 1
- Error summary list box HOT 1
- Back to top button HOT 1
- Design set of new icons: credit card, document, computer, link, edit, images HOT 1
- Redesign global alerts HOT 2
- Pop-up tip HOT 1
- Select List HOT 1
- Adding "Accordion" lists to default template/website HOT 6
- Update Modular Spacing page HOT 2
- Flatten Component list HOT 1
- Update Colors page on the Decanter website with new Identity Colors HOT 1
- Refactor Decanter library in Figma use new auto-layout functionality HOT 2
- Change su-brand-bar to su-global-identity-bar HOT 1
- Standalone Global Footer HOT 2
- Duplicate styles. HOT 1
- Next JS 14 Turbo Compatibility
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 decanter.