Standards for creating consistent, interoperable user interfaces
system-ui / system-ui.com Goto Github PK
View Code? Open in Web Editor NEWStandards for creating consistent, interoperable user interfaces
Home Page: https://system-ui.vercel.app
Standards for creating consistent, interoperable user interfaces
Home Page: https://system-ui.vercel.app
Standards for creating consistent, interoperable user interfaces
Consider the following example:
colors: {
blue: '#07c',
blues: [
'#004170',
'#006fbe',
'#2d8fd5',
'#5aa7de',
]
}
One then has to then assign color names:
theme.colors.blues.regalBlue = theme.colors.blues[0]
But because object literals in JSON and JavaScript are already ordered, one could perhaps use instead:
colors: {
blue: '#07c',
blues: {
regalBlue: '#004170',
lochmara: '#006fbe',
curiousBlue: '#2d8fd5',
havelockBlue: '#5aa7de',
}
}
Something like styled-system
could then transform blues
to be available as an array, e.g. blues[0]
or blues.0
. Keys in JavaScript are already ordered.
It'd be perhaps nice if theme objects could be in JSON? Then we could use a JSON schema to validate theme objects.
Hey!
Cool project! However, while reading through I found that the link to Rebass was broken here. If you're open to contributions, I'll open a PR.
Hey @jxnblk,
Really liking what I've been reading in the spec so far, as well as following the conversation over in system-ui/theme-specification#1.
I was wondering if you could add an example of the specification, as you imagine it, to the site?
I think it would be helpful for readers to see the specification in action, and being able to see the implementation would make it simpler for people to follow along.
Would also be great to see the example specification being used in a couple of framework examples too.
Perhaps having the spec pulled into some Emotion/Styled Components/Glamour/etc example projects would help solidify the real world applications.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.