No routing new setup - #3554
Draft
Diaan wants to merge 3 commits into
Draft
Conversation
- Deleted unused token files for device typography, scale, space, and typography. - Updated the theme setup script to reflect changes in source theme files and improved logging for theme generation. - Adjusted the studio.lock file to reflect new source references and updated timestamps.
Diaan
changed the base branch from
main
to
chore/2873-remove-routing-from-token-setup-separate-deprecated-project
July 27, 2026 07:54
…oken-setup-separate-deprecated-project' into no-routing-new-setup
…iles to ensure proper formatting; modify setup-themes script for improved theme handling; update package.json to streamline token import process; refresh studio.lock with new generated timestamps and integrity hashes.
|
Comment on lines
12
to
+15
| const destinationTypography = join(cwd, `${theme}/typography.css`); | ||
|
|
||
| const typographyCssFiles = [ | ||
| './export/core-css/Device/tablet.css', | ||
| './export/core-css/Device/desktop.css', | ||
| './export/core-css/Device/mobile.css', | ||
| './export/core-css/User-Group/advanced.css', | ||
| './export/core-css/User-Group/early.css', | ||
| './export/core-css/User-Group/developing.css', | ||
| '../packages/themes/core/typography.css' | ||
| const themeName = theme.split('/').pop(); | ||
| const sourceThemeFiles = [ |
Comment on lines
+27
to
+31
| let content = data; | ||
| if (file.includes(`${themeName}.css`)) { | ||
| content = content.replace(new RegExp(`\\[data-brand="${themeName}"\\]`, 'g'), 'body'); | ||
| } | ||
| resolve(content); |
Comment on lines
180
to
+184
| let currentThemeId: string | undefined; | ||
| let currentMode: Mode | undefined; | ||
|
|
||
| export const updateTheme = async (themeId: string, mode: Mode = 'light'): Promise<void> => { | ||
| if (currentThemeId === themeId && currentMode === mode) { | ||
| export const updateTheme = async (themeId: string): Promise<void> => { | ||
| if (currentThemeId === themeId) { |
Comment on lines
+1
to
+7
| @media (prefers-color-scheme: dark) { | ||
| :root { | ||
| --color-scheme: dark; | ||
| color-scheme: dark; | ||
| } | ||
| } | ||
|
|
Comment on lines
+114
to
+120
| (story, { globals: { mode = 'light' } }) => { | ||
| //TODO if you remove these it takes the user preference from the system. | ||
| // document.documentElement.style.setProperty('--color-scheme', mode); | ||
| // document.documentElement.style.setProperty('color-scheme', mode); | ||
|
|
||
| return story(); | ||
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.