Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
chore: checkout theme colors stories file from main
Browse files Browse the repository at this point in the history
  • Loading branch information
georgewrmarshall committed May 29, 2024
1 parent 04e54c7 commit e89d993
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/ThemeColors.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ export const FigmaLightTheme = {
export const FigmaDarkTheme = {
render: () => {
const { darkTheme } = useJsonColor();
console.log('darkTheme', darkTheme);
if (!darkTheme) {
return null; // or some fallback component
}
console.log('darkTheme', darkTheme);
return (
<div
style={{
Expand Down Expand Up @@ -173,6 +173,7 @@ export const JSLightTheme = {
);
},
};

export const JSDarkTheme = {
render: () => {
const colors = getJSColors(darkThemeJS.colors);
Expand Down
11 changes: 11 additions & 0 deletions vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,15 @@ import { defineConfig } from 'vite';

export default defineConfig({
plugins: [react()], // Enables fast refresh for React during development
optimizeDeps: {
exclude: [
'chunk-OX4CVSUV',
'chunk-P2DGAL6P',
'chunk-FNK6EM6G',
'chunk-4W3HZEF5',
],
},
server: {
open: '/index.html',
},
});

0 comments on commit e89d993

Please sign in to comment.