Skip to content

Commit

Permalink
Restore missing new project color tokens (#774)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kitenite authored Nov 12, 2024
1 parent db7ee63 commit 37e40bc
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Icons } from '@onlook/ui/icons';
import { Card } from '@onlook/ui/card';
import { CreateMethod } from '@/routes/projects/helpers';
import { Card } from '@onlook/ui/card';
import { Icons } from '@onlook/ui/icons';

export const ChooseMethod = ({
setCreateMethod,
Expand Down
2 changes: 1 addition & 1 deletion apps/studio/src/routes/projects/ProjectsTab/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useProjectsManager } from '@/components/Context';
import { observer } from 'mobx-react-lite';
import type { CreateMethod } from '@/routes/projects/helpers';
import { observer } from 'mobx-react-lite';
import { ChooseMethod } from './Create/ChooseMethod';
import SelectProject from './Select';

Expand Down
38 changes: 38 additions & 0 deletions packages/ui/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,44 @@ const config = {
DEFAULT: 'hsl(var(--accent))',
foreground: 'hsl(var(--accent-foreground))',
},
np: {
primary: {
card: {
background: {
DEFAULT: 'var(--np-primary-card-background)',
hover: 'var(--np-primary-card-background-hover)',
},
border: {
DEFAULT: 'var(--np-primary-card-border)',
hover: 'var(--np-primary-card-border-hover)',
},
text: 'var(--np-primary-card-text)',
subtext: 'var(--np-primary-card-subtext)',
},
icon: {
background: 'var(--np-primary-icon-background)',
shape: 'var(--np-primary-icon-shape)',
},
},
secondary: {
card: {
background: {
DEFAULT: 'var(--np-secondary-card-background)',
hover: 'var(--np-secondary-card-background-hover)',
},
border: {
DEFAULT: 'var(--np-secondary-card-border)',
hover: 'var(--np-secondary-card-border-hover)',
},
text: 'var(--np-secondary-card-text)',
subtext: 'var(--np-secondary-card-subtext)',
},
icon: {
background: 'var(--np-secondary-icon-background)',
shape: 'var(--np-secondary-icon-shape)',
},
},
},
input: 'hsl(var(--input))',
ring: 'hsl(var(--ring))',
...colors,
Expand Down

0 comments on commit 37e40bc

Please sign in to comment.