Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oppdater klassenavnet for å skru på accent mode #2490

Merged
merged 2 commits into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const preview: Preview = {
)}
{(scheme === 'both' || scheme === 'light') &&
(accent === 'both' || accent === 'accent') && (
<div className="ffe-docs-content-container accent">
<div className="ffe-docs-content-container ffe-accent-mode">
<Story />
</div>
)}
Expand All @@ -77,7 +77,7 @@ const preview: Preview = {
)}
{(scheme === 'both' || scheme === 'dark') &&
(accent === 'both' || accent === 'accent') && (
<div className="ffe-docs-content-container dark-mode regard-color-scheme-preference accent">
<div className="ffe-docs-content-container dark-mode regard-color-scheme-preference ffe-accent-mode">
<Story />
</div>
)}
Expand Down
2 changes: 1 addition & 1 deletion packages/ffe-core/scripts/generate-semantic-colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function filePath(filename) {

function generateSemanticColors() {
let cssContent = '// Generated from Figma tokens';
cssContent += `\n\n// Context accent \n.accent {\n${convertContextJsonToCss(filePath(files.contextAccent)).join('\n')}}\n`;
cssContent += `\n\n// Context accent \n.ffe-accent-mode {\n${convertContextJsonToCss(filePath(files.contextAccent)).join('\n')}}\n`;
cssContent += `\n\n// Context \n:root,\n:host {\n${convertContextJsonToCss(filePath(files.context)).join('\n')}}\n`;
cssContent += `\n\n${convertSemanticJsonToCss(filePath(files.semanticLight))}`;
cssContent += `\n\n${convertSemanticJsonToCss(filePath(files.semanticDark), filePath(files.context), filePath(files.contextAccent))}`;
Expand Down
Loading