This commit is contained in:
Nate Butler
2023-04-11 12:23:21 -04:00
parent 527f0310e2
commit 975f5d5fa8
8 changed files with 141 additions and 69 deletions
+6 -1
View File
@@ -12,4 +12,9 @@ const license = {
const variant = ayu.dark
const theme = buildTheme(variant, false)
export const dark = createColorScheme(`${name} Dark`, false, theme.ramps, theme.syntax)
export const dark = createColorScheme(
`${name} Dark`,
false,
theme.ramps,
theme.syntax
)
+6 -1
View File
@@ -12,4 +12,9 @@ const license = {
const variant = ayu.light
const theme = buildTheme(variant, true)
export const light = createColorScheme(`${name} Light`, true, theme.ramps, theme.syntax)
export const light = createColorScheme(
`${name} Light`,
true,
theme.ramps,
theme.syntax
)
+6 -1
View File
@@ -12,4 +12,9 @@ const license = {
const variant = ayu.mirage
const theme = buildTheme(variant, false)
export const dark = createColorScheme(`${name} Mirage`, false, theme.ramps, theme.syntax)
export const dark = createColorScheme(
`${name} Mirage`,
false,
theme.ramps,
theme.syntax
)
+6 -6
View File
@@ -1,12 +1,12 @@
import { dark, light, mirage } from 'ayu'
import { ThemeSyntax } from './syntax'
import chroma from 'chroma-js'
import { colorRamp } from './ramps'
import { dark, light, mirage } from "ayu"
import { ThemeSyntax } from "./syntax"
import chroma from "chroma-js"
import { colorRamp } from "./ramps"
export const ayu = {
dark,
light,
mirage
mirage,
}
export const buildTheme = (t: typeof dark, light: boolean) => {
@@ -53,7 +53,7 @@ export const buildTheme = (t: typeof dark, light: boolean) => {
violet: colorRamp(chroma(color.purple)),
magenta: colorRamp(chroma(color.lightBlue)),
},
syntax
syntax,
}
}