Skip to content

Commit

Permalink
use the tokens, fix css urls
Browse files Browse the repository at this point in the history
  • Loading branch information
remorses committed Dec 5, 2024
1 parent ba4804a commit ccd0534
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion nextjs-app/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ yarn-error.log*
*.tsbuildinfo
next-env.d.ts

certificates
certificates
/framer
1 change: 1 addition & 0 deletions unframer/src/cli.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ async function processConfig({
breakpoints,
cwd: installDir,
watch,
tokens: config.tokens,
signal,
})
} catch (e: any) {
Expand Down
2 changes: 1 addition & 1 deletion unframer/src/css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export function getFontsStyles(_fontsDefs: ComponentFontBundle[]) {
str += dedent`
@font-face {
font-family: '${x.family}';
src: url(${x.url});\n`
src: url('${x.url}');\n`
if (x.style) {
str += ` font-style: ${x.style};\n`
}
Expand Down
2 changes: 1 addition & 1 deletion unframer/src/exporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ export function getDarkModeSelector(opts: {
'}'
)
}
return '.dark {\n' + content + '\n' + '}'
return '.dark:root {\n' + content + '\n' + '}'
}

export function getStyleTokensCss(
Expand Down

0 comments on commit ccd0534

Please sign in to comment.