Format
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user