Migration from Theme UI
See original GitHub issueMotivation
The ecosystem behind Theme UI is growing fast. It’d be great to have a converter available for their own theme format. Also, a detailed documentation page which compares the differences between theme specs would also be very useful.
Basic example
/* theme.treat.js */
import { createTheme, fromThemeUI } from 'glaze';
export default createTheme(fromThemeUI({
// Theme UI tokens, e.g.:
colors: {
text: '#000',
background: '#fff',
primary: '#07c',
secondary: '#05a',
accent: '#609',
muted: '#f6f6f6',
},
fonts: {
body: 'system-ui, sans-serif',
heading: 'system-ui, sans-serif',
monospace: 'Menlo, monospace',
},
fontWeights: {
body: 400,
heading: 700,
bold: 700,
},
lineHeights: {
body: 1.5,
heading: 1.125,
},
}));
This would even allow using existing Theme UI presets, e.g.:
/* theme.treat.js */
import { bootstrap } from '@theme-ui/presets'
import { createTheme, fromThemeUI } from 'glaze';
export default createTheme(fromThemeUI({
...bootstrap,
colors: {
...bootstrap.colors,
brand: '#123456',
},
}));
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Migrating - Theme UI
Migration : Use useThemedStylesWithMdx together with MDXProvider and useMDXComponents from @mdx-js/react ... Migration: Import it from @theme-ui/mdx instead.
Read more >Migrate to Theme UI and shadow its components for a better ...
I've been thinking about this as well. We're definitely moving to theme-ui once we can migrate all components to TS. Then, we'll look...
Read more >Breaking changes in v5, part one: styles and themes - MUI
This is a reference guide to all of the breaking changes introduced in Material v5, and how to handle them when migrating from...
Read more >Why Migrate - Universal Theme - Oracle APEX
Additionally, Universal Theme utilizes several key UI features of Application Express 5 and provides a number of new Templates and Template Options that ......
Read more >Upgrading to v2 - Chakra UI
Upgrade steps#. Here is a list of steps to migrate your project to v2. ... To opt out of this feature, set theme.config.disableTransitionOnChange...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah, I’ve never personally used anything other than pixels. That all makes the kind of sense that does 👍 I’ll get a draft PR going.
I’d be willing to take a stab at this.