Comments (5)
Check these articles from Microsoft Fast team
https://medium.com/fast-design/evolution-of-design-tokens-and-component-styling-part-1-f1491ad1120e
https://medium.com/fast-design/evolution-of-design-tokens-and-component-styling-part-2-1018e8bae62
from css.
I think we should use Javascript Object for defining tokens. JSON looks bad. It would be great If we can also use Master CSS color palette in design tokens.
from css.
An amazing v2 (beta) so far, would love it if css.theme
is typed based on themes configured, or alternatively a updateTheme
method can be exported.
from css.
@itsezc I guess you've already seen it. Master CSS v2.0 Beta Release #79 - Built-in theme switching and synchronization
from css.
I think it should be an external package and there may be more than one specification for design tokens.
Something like this:
/* master.css.js */
import { extend } from '@master/css'
import xDesignTokens from 'x-design-tokens'
import xDesignTokensToMasterCSSConfig from 'x-design-tokens-to-master-css-config'
module.export = extend(
{
classes: { },
...
},
xDesignTokensToMasterCSSConfig(xDesignTokens)
)
from css.
Related Issues (20)
- 🐞Wrong version of `@master/css` as dependency of `@master/css.svelte` HOT 3
- 🐞 `outline:none` is broken HOT 3
- 💖 Modify Master CSS configuration without reloading ESLint Server HOT 1
- 🐞 CSS variables with `themeDriver: 'media'` were not captured
- 💖 Reset outline style on focus to maintain accessibility HOT 4
- 💖 Create `CSSStyleRule` based on different themes HOT 2
- 🐞 Export error with sveltekit HOT 1
- 📄 Set up Master CSS in Svelte
- 💖 MasterCSS should look for `master.css.*` config file inside src folder (svelte) HOT 4
- 💖 New `render()` function throwing errors in SvelteKit HOT 2
- 📄 CDN https://cdn.master.co/[email protected] doesn't exist HOT 2
- Hide or Fade classes (VS Code Extension)
- 💖 Missing binary after installing @master/css-language-server HOT 2
- 📄 Alpha channel modifier related to Color is not documented
- ✨ Multiplier unit `x` and `config.baseUnit`
- 💖 Prefer animation names over variables HOT 2
- 🐞 normal.css max-width causes many problems HOT 5
- 🐞 Invalid SSL certificate
- ✨ `@supported` shorthand for whether declarations are supported
- ✨ `translate`, `scale:`, `rotate:` shorthands for `transform:`
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 css.