feat: update themes to use ThemeConfig

This commit is contained in:
Sergey Onufrienko
2023-06-02 14:11:11 +02:00
parent 5fbbc1936f
commit f97999d97f
34 changed files with 310 additions and 233 deletions
+9 -4
View File
@@ -1,6 +1,5 @@
import chroma from "chroma-js"
import { Meta } from "../common/colorScheme"
import { colorRamp, createColorScheme } from "../common/ramps"
import { Meta, colorRamp, createColorScheme, ThemeAppearance } from "../common"
const name = "Andromeda"
@@ -27,8 +26,6 @@ const ramps = {
magenta: colorRamp(chroma("#C74DED")),
}
export const dark = createColorScheme(name, false, ramps)
export const meta: Meta = {
name,
author: "EliverLara",
@@ -37,3 +34,11 @@ export const meta: Meta = {
},
url: "https://github.com/EliverLara/Andromeda",
}
export const dark = createColorScheme({
name: meta.name,
author: meta.author,
appearance: ThemeAppearance.Dark,
inputColor: ramps,
override: { syntax: {} },
})
@@ -1,6 +1,5 @@
import chroma from "chroma-js"
import { Meta } from "../common/colorScheme"
import { colorRamp, createColorScheme } from "../common/ramps"
import { Meta, colorRamp, createColorScheme, ThemeAppearance } from "../common"
import { metaCommon, name, buildSyntax, Variant } from "./common"
const variant: Variant = {
@@ -34,10 +33,11 @@ const syntax = buildSyntax(variant)
const theme = (variant: Variant) => {
const { meta, colors } = variant
return createColorScheme(
meta.name,
false,
{
return createColorScheme({
name: meta.name,
author: meta.author,
appearance: ThemeAppearance.Dark,
inputColor: {
neutral: chroma.scale([
colors.base00,
colors.base01,
@@ -57,8 +57,8 @@ const theme = (variant: Variant) => {
violet: colorRamp(chroma(colors.base0E)),
magenta: colorRamp(chroma(colors.base0F)),
},
syntax
)
override: { syntax },
})
}
export const dark = theme(variant)
@@ -1,6 +1,5 @@
import chroma from "chroma-js"
import { Meta } from "../common/colorScheme"
import { colorRamp, createColorScheme } from "../common/ramps"
import { Meta, colorRamp, createColorScheme, ThemeAppearance } from "../common"
import { metaCommon, name, buildSyntax, Variant } from "./common"
const variant: Variant = {
@@ -34,10 +33,11 @@ const syntax = buildSyntax(variant)
const theme = (variant: Variant) => {
const { meta, colors } = variant
return createColorScheme(
meta.name,
true,
{
return createColorScheme({
name: meta.name,
author: meta.author,
appearance: ThemeAppearance.Light,
inputColor: {
neutral: chroma.scale(
[
colors.base00,
@@ -59,8 +59,8 @@ const theme = (variant: Variant) => {
violet: colorRamp(chroma(colors.base0E)),
magenta: colorRamp(chroma(colors.base0F)),
},
syntax
)
override: { syntax },
})
}
export const dark = theme(variant)
@@ -1,6 +1,5 @@
import chroma from "chroma-js"
import { Meta } from "../common/colorScheme"
import { colorRamp, createColorScheme } from "../common/ramps"
import { Meta, colorRamp, createColorScheme, ThemeAppearance } from "../common"
import { metaCommon, name, buildSyntax, Variant } from "./common"
const variant: Variant = {
@@ -34,10 +33,11 @@ const syntax = buildSyntax(variant)
const theme = (variant: Variant) => {
const { meta, colors } = variant
return createColorScheme(
meta.name,
false,
{
return createColorScheme({
name: meta.name,
author: meta.author,
appearance: ThemeAppearance.Dark,
inputColor: {
neutral: chroma.scale([
colors.base00,
colors.base01,
@@ -57,8 +57,8 @@ const theme = (variant: Variant) => {
violet: colorRamp(chroma(colors.base0E)),
magenta: colorRamp(chroma(colors.base0F)),
},
syntax
)
override: { syntax },
})
}
export const dark = theme(variant)
@@ -1,6 +1,5 @@
import chroma from "chroma-js"
import { Meta } from "../common/colorScheme"
import { colorRamp, createColorScheme } from "../common/ramps"
import { Meta, colorRamp, createColorScheme, ThemeAppearance } from "../common"
import { metaCommon, name, buildSyntax, Variant } from "./common"
const variant: Variant = {
@@ -34,10 +33,11 @@ const syntax = buildSyntax(variant)
const theme = (variant: Variant) => {
const { meta, colors } = variant
return createColorScheme(
meta.name,
true,
{
return createColorScheme({
name: meta.name,
author: meta.author,
appearance: ThemeAppearance.Light,
inputColor: {
neutral: chroma.scale(
[
colors.base00,
@@ -59,8 +59,8 @@ const theme = (variant: Variant) => {
violet: colorRamp(chroma(colors.base0E)),
magenta: colorRamp(chroma(colors.base0F)),
},
syntax
)
override: { syntax },
})
}
export const dark = theme(variant)
@@ -1,6 +1,5 @@
import chroma from "chroma-js"
import { Meta } from "../common/colorScheme"
import { colorRamp, createColorScheme } from "../common/ramps"
import { Meta, colorRamp, createColorScheme, ThemeAppearance } from "../common"
import { metaCommon, name, buildSyntax, Variant } from "./common"
const variant: Variant = {
@@ -34,10 +33,11 @@ const syntax = buildSyntax(variant)
const theme = (variant: Variant) => {
const { meta, colors } = variant
return createColorScheme(
meta.name,
false,
{
return createColorScheme({
name: meta.name,
author: meta.author,
appearance: ThemeAppearance.Dark,
inputColor: {
neutral: chroma.scale([
colors.base00,
colors.base01,
@@ -57,8 +57,8 @@ const theme = (variant: Variant) => {
violet: colorRamp(chroma(colors.base0E)),
magenta: colorRamp(chroma(colors.base0F)),
},
syntax
)
override: { syntax },
})
}
export const dark = theme(variant)
@@ -1,6 +1,5 @@
import chroma from "chroma-js"
import { Meta } from "../common/colorScheme"
import { colorRamp, createColorScheme } from "../common/ramps"
import { Meta, colorRamp, createColorScheme, ThemeAppearance } from "../common"
import { metaCommon, name, buildSyntax, Variant } from "./common"
const variant: Variant = {
@@ -34,10 +33,11 @@ const syntax = buildSyntax(variant)
const theme = (variant: Variant) => {
const { meta, colors } = variant
return createColorScheme(
meta.name,
true,
{
return createColorScheme({
name: meta.name,
author: meta.author,
appearance: ThemeAppearance.Light,
inputColor:{
neutral: chroma.scale(
[
colors.base00,
@@ -59,7 +59,7 @@ const theme = (variant: Variant) => {
violet: colorRamp(chroma(colors.base0E)),
magenta: colorRamp(chroma(colors.base0F)),
},
syntax
override: { syntax },}
)
}
@@ -1,6 +1,5 @@
import chroma from "chroma-js"
import { Meta } from "../common/colorScheme"
import { colorRamp, createColorScheme } from "../common/ramps"
import { Meta, colorRamp, createColorScheme, ThemeAppearance } from "../common"
import { metaCommon, name, buildSyntax, Variant } from "./common"
const variant: Variant = {
@@ -34,10 +33,11 @@ const syntax = buildSyntax(variant)
const theme = (variant: Variant) => {
const { meta, colors } = variant
return createColorScheme(
meta.name,
false,
{
return createColorScheme({
name: meta.name,
author: meta.author,
appearance: ThemeAppearance.Dark,
inputColor: {
neutral: chroma.scale([
colors.base00,
colors.base01,
@@ -57,8 +57,8 @@ const theme = (variant: Variant) => {
violet: colorRamp(chroma(colors.base0E)),
magenta: colorRamp(chroma(colors.base0F)),
},
syntax
)
override: { syntax },
})
}
export const dark = theme(variant)
@@ -1,6 +1,5 @@
import chroma from "chroma-js"
import { Meta } from "../common/colorScheme"
import { colorRamp, createColorScheme } from "../common/ramps"
import { Meta, colorRamp, createColorScheme, ThemeAppearance } from "../common"
import { metaCommon, name, buildSyntax, Variant } from "./common"
const variant: Variant = {
@@ -34,10 +33,11 @@ const syntax = buildSyntax(variant)
const theme = (variant: Variant) => {
const { meta, colors } = variant
return createColorScheme(
meta.name,
true,
{
return createColorScheme({
name: meta.name,
author: meta.author,
appearance: ThemeAppearance.Dark,
inputColor: {
neutral: chroma.scale(
[
colors.base00,
@@ -59,8 +59,8 @@ const theme = (variant: Variant) => {
violet: colorRamp(chroma(colors.base0E)),
magenta: colorRamp(chroma(colors.base0F)),
},
syntax
)
override: { syntax },
})
}
export const dark = theme(variant)
@@ -1,6 +1,5 @@
import chroma from "chroma-js"
import { Meta } from "../common/colorScheme"
import { colorRamp, createColorScheme } from "../common/ramps"
import { Meta, colorRamp, createColorScheme, ThemeAppearance } from "../common"
import { metaCommon, name, buildSyntax, Variant } from "./common"
const variant: Variant = {
@@ -34,10 +33,11 @@ const syntax = buildSyntax(variant)
const theme = (variant: Variant) => {
const { meta, colors } = variant
return createColorScheme(
meta.name,
false,
{
return createColorScheme({
name: meta.name,
author: meta.author,
appearance: ThemeAppearance.Dark,
inputColor: {
neutral: chroma.scale([
colors.base00,
colors.base01,
@@ -57,8 +57,8 @@ const theme = (variant: Variant) => {
violet: colorRamp(chroma(colors.base0E)),
magenta: colorRamp(chroma(colors.base0F)),
},
syntax
)
override: { syntax },
})
}
export const dark = theme(variant)
@@ -1,6 +1,5 @@
import chroma from "chroma-js"
import { Meta } from "../common/colorScheme"
import { colorRamp, createColorScheme } from "../common/ramps"
import { Meta, colorRamp, createColorScheme, ThemeAppearance } from "../common"
import { metaCommon, name, buildSyntax, Variant } from "./common"
const variant: Variant = {
@@ -34,10 +33,11 @@ const syntax = buildSyntax(variant)
const theme = (variant: Variant) => {
const { meta, colors } = variant
return createColorScheme(
meta.name,
true,
{
return createColorScheme({
name: meta.name,
author: meta.author,
appearance: ThemeAppearance.Light,
inputColor: {
neutral: chroma.scale(
[
colors.base00,
@@ -59,8 +59,8 @@ const theme = (variant: Variant) => {
violet: colorRamp(chroma(colors.base0E)),
magenta: colorRamp(chroma(colors.base0F)),
},
syntax
)
override: { syntax },
})
}
export const dark = theme(variant)
@@ -1,6 +1,5 @@
import chroma from "chroma-js"
import { Meta } from "../common/colorScheme"
import { colorRamp, createColorScheme } from "../common/ramps"
import { Meta, colorRamp, createColorScheme, ThemeAppearance } from "../common"
import { metaCommon, name, buildSyntax, Variant } from "./common"
const variant: Variant = {
@@ -34,10 +33,11 @@ const syntax = buildSyntax(variant)
const theme = (variant: Variant) => {
const { meta, colors } = variant
return createColorScheme(
meta.name,
false,
{
return createColorScheme({
name: meta.name,
author: meta.author,
appearance: ThemeAppearance.Dark,
inputColor: {
neutral: chroma.scale([
colors.base00,
colors.base01,
@@ -57,8 +57,8 @@ const theme = (variant: Variant) => {
violet: colorRamp(chroma(colors.base0E)),
magenta: colorRamp(chroma(colors.base0F)),
},
syntax
)
override: { syntax },
})
}
export const dark = theme(variant)
@@ -1,6 +1,5 @@
import chroma from "chroma-js"
import { Meta } from "../common/colorScheme"
import { colorRamp, createColorScheme } from "../common/ramps"
import { Meta, colorRamp, createColorScheme, ThemeAppearance } from "../common"
import { metaCommon, name, buildSyntax, Variant } from "./common"
const variant: Variant = {
@@ -34,10 +33,11 @@ const syntax = buildSyntax(variant)
const theme = (variant: Variant) => {
const { meta, colors } = variant
return createColorScheme(
meta.name,
true,
{
return createColorScheme({
name: meta.name,
author: meta.author,
appearance: ThemeAppearance.Light,
inputColor: {
neutral: chroma.scale(
[
colors.base00,
@@ -59,8 +59,8 @@ const theme = (variant: Variant) => {
violet: colorRamp(chroma(colors.base0E)),
magenta: colorRamp(chroma(colors.base0F)),
},
syntax
)
override: { syntax },
})
}
export const dark = theme(variant)
@@ -1,6 +1,5 @@
import chroma from "chroma-js"
import { Meta } from "../common/colorScheme"
import { colorRamp, createColorScheme } from "../common/ramps"
import { Meta, colorRamp, createColorScheme, ThemeAppearance } from "../common"
import { metaCommon, name, buildSyntax, Variant } from "./common"
const variant: Variant = {
@@ -34,10 +33,11 @@ const syntax = buildSyntax(variant)
const theme = (variant: Variant) => {
const { meta, colors } = variant
return createColorScheme(
meta.name,
false,
{
return createColorScheme({
name: meta.name,
author: meta.author,
appearance: ThemeAppearance.Dark,
inputColor: {
neutral: chroma.scale([
colors.base00,
colors.base01,
@@ -57,8 +57,8 @@ const theme = (variant: Variant) => {
violet: colorRamp(chroma(colors.base0E)),
magenta: colorRamp(chroma(colors.base0F)),
},
syntax
)
override: { syntax },
})
}
export const dark = theme(variant)
@@ -1,6 +1,5 @@
import chroma from "chroma-js"
import { Meta } from "../common/colorScheme"
import { colorRamp, createColorScheme } from "../common/ramps"
import { Meta, colorRamp, createColorScheme, ThemeAppearance } from "../common"
import { metaCommon, name, buildSyntax, Variant } from "./common"
const variant: Variant = {
@@ -34,10 +33,11 @@ const syntax = buildSyntax(variant)
const theme = (variant: Variant) => {
const { meta, colors } = variant
return createColorScheme(
meta.name,
true,
{
return createColorScheme({
name: meta.name,
author: meta.author,
appearance: ThemeAppearance.Light,
inputColor:{
neutral: chroma.scale(
[
colors.base00,
@@ -59,7 +59,7 @@ const theme = (variant: Variant) => {
violet: colorRamp(chroma(colors.base0E)),
magenta: colorRamp(chroma(colors.base0F)),
},
syntax
override: { syntax },}
)
}
@@ -1,6 +1,5 @@
import chroma from "chroma-js"
import { Meta } from "../common/colorScheme"
import { colorRamp, createColorScheme } from "../common/ramps"
import { Meta, colorRamp, createColorScheme, ThemeAppearance } from "../common"
import { metaCommon, name, buildSyntax, Variant } from "./common"
const variant: Variant = {
@@ -34,10 +33,11 @@ const syntax = buildSyntax(variant)
const theme = (variant: Variant) => {
const { meta, colors } = variant
return createColorScheme(
meta.name,
false,
{
return createColorScheme({
name: meta.name,
author: meta.author,
appearance: ThemeAppearance.Dark,
inputColor: {
neutral: chroma.scale([
colors.base00,
colors.base01,
@@ -57,8 +57,8 @@ const theme = (variant: Variant) => {
violet: colorRamp(chroma(colors.base0E)),
magenta: colorRamp(chroma(colors.base0F)),
},
syntax
)
override: { syntax },
})
}
export const dark = theme(variant)
@@ -1,6 +1,5 @@
import chroma from "chroma-js"
import { Meta } from "../common/colorScheme"
import { colorRamp, createColorScheme } from "../common/ramps"
import { Meta, colorRamp, createColorScheme, ThemeAppearance } from "../common"
import { metaCommon, name, buildSyntax, Variant } from "./common"
const variant: Variant = {
@@ -34,10 +33,11 @@ const syntax = buildSyntax(variant)
const theme = (variant: Variant) => {
const { meta, colors } = variant
return createColorScheme(
meta.name,
true,
{
return createColorScheme({
name: meta.name,
author: meta.author,
appearance: ThemeAppearance.Light,
inputColor: {
neutral: chroma.scale(
[
colors.base00,
@@ -59,8 +59,8 @@ const theme = (variant: Variant) => {
violet: colorRamp(chroma(colors.base0E)),
magenta: colorRamp(chroma(colors.base0F)),
},
syntax
)
override: { syntax },
})
}
export const dark = theme(variant)
@@ -1,6 +1,5 @@
import chroma from "chroma-js"
import { Meta } from "../common/colorScheme"
import { colorRamp, createColorScheme } from "../common/ramps"
import { Meta, colorRamp, createColorScheme, ThemeAppearance } from "../common"
import { metaCommon, name, buildSyntax, Variant } from "./common"
const variant: Variant = {
@@ -34,10 +33,11 @@ const syntax = buildSyntax(variant)
const theme = (variant: Variant) => {
const { meta, colors } = variant
return createColorScheme(
meta.name,
false,
{
return createColorScheme({
name: meta.name,
author: meta.author,
appearance: ThemeAppearance.Dark,
inputColor: {
neutral: chroma.scale([
colors.base00,
colors.base01,
@@ -57,8 +57,8 @@ const theme = (variant: Variant) => {
violet: colorRamp(chroma(colors.base0E)),
magenta: colorRamp(chroma(colors.base0F)),
},
syntax
)
override: { syntax },
})
}
export const dark = theme(variant)
@@ -1,6 +1,5 @@
import chroma from "chroma-js"
import { Meta } from "../common/colorScheme"
import { colorRamp, createColorScheme } from "../common/ramps"
import { Meta, colorRamp, createColorScheme, ThemeAppearance } from "../common"
import { metaCommon, name, buildSyntax, Variant } from "./common"
const variant: Variant = {
@@ -34,10 +33,11 @@ const syntax = buildSyntax(variant)
const theme = (variant: Variant) => {
const { meta, colors } = variant
return createColorScheme(
meta.name,
true,
{
return createColorScheme({
name: meta.name,
author: meta.author,
appearance: ThemeAppearance.Light,
inputColor: {
neutral: chroma.scale(
[
colors.base00,
@@ -59,8 +59,8 @@ const theme = (variant: Variant) => {
violet: colorRamp(chroma(colors.base0E)),
magenta: colorRamp(chroma(colors.base0F)),
},
syntax
)
override: { syntax },
})
}
export const dark = theme(variant)
@@ -1,6 +1,5 @@
import chroma from "chroma-js"
import { Meta } from "../common/colorScheme"
import { colorRamp, createColorScheme } from "../common/ramps"
import { Meta, colorRamp, createColorScheme, ThemeAppearance } from "../common"
import { metaCommon, name, buildSyntax, Variant } from "./common"
const variant: Variant = {
@@ -34,10 +33,11 @@ const syntax = buildSyntax(variant)
const theme = (variant: Variant) => {
const { meta, colors } = variant
return createColorScheme(
meta.name,
false,
{
return createColorScheme({
name: meta.name,
author: meta.author,
appearance: ThemeAppearance.Dark,
inputColor: {
neutral: chroma.scale([
colors.base00,
colors.base01,
@@ -57,8 +57,8 @@ const theme = (variant: Variant) => {
violet: colorRamp(chroma(colors.base0E)),
magenta: colorRamp(chroma(colors.base0F)),
},
syntax
)
override: { syntax },
})
}
export const dark = theme(variant)
@@ -1,6 +1,5 @@
import chroma from "chroma-js"
import { Meta } from "../common/colorScheme"
import { colorRamp, createColorScheme } from "../common/ramps"
import { Meta, colorRamp, createColorScheme, ThemeAppearance } from "../common"
import { metaCommon, name, buildSyntax, Variant } from "./common"
const variant: Variant = {
@@ -34,10 +33,11 @@ const syntax = buildSyntax(variant)
const theme = (variant: Variant) => {
const { meta, colors } = variant
return createColorScheme(
meta.name,
true,
{
return createColorScheme({
name: meta.name,
author: meta.author,
appearance: ThemeAppearance.Light,
inputColor: {
neutral: chroma.scale(
[
colors.base00,
@@ -59,8 +59,8 @@ const theme = (variant: Variant) => {
violet: colorRamp(chroma(colors.base0E)),
magenta: colorRamp(chroma(colors.base0F)),
},
syntax
)
override: { syntax },
})
}
export const dark = theme(variant)
+1 -1
View File
@@ -1,4 +1,4 @@
import { License, Meta, ThemeSyntax } from "../common/colorScheme"
import { License, Meta, ThemeSyntax } from "../common"
export interface Variant {
meta: Meta
+9 -8
View File
@@ -1,17 +1,18 @@
import { createColorScheme } from "../common/ramps"
import { createColorScheme, ThemeAppearance } from "../common"
import { ayu, meta as themeMeta, buildTheme } from "./common"
export const meta = {
...themeMeta,
name: `${themeMeta.name} Dark`
name: `${themeMeta.name} Dark`,
}
const variant = ayu.dark
const theme = buildTheme(variant, false)
export const dark = createColorScheme(
meta.name,
false,
theme.ramps,
theme.syntax
)
export const dark = createColorScheme({
name: meta.name,
author: meta.author,
appearance: ThemeAppearance.Dark,
inputColor: theme.ramps,
override: { syntax: theme.syntax },
})
+9 -8
View File
@@ -1,17 +1,18 @@
import { createColorScheme } from "../common/ramps"
import { createColorScheme, ThemeAppearance } from "../common"
import { ayu, meta as themeMeta, buildTheme } from "./common"
export const meta = {
...themeMeta,
name: `${themeMeta.name} Light`
name: `${themeMeta.name} Light`,
}
const variant = ayu.light
const theme = buildTheme(variant, true)
export const light = createColorScheme(
meta.name,
true,
theme.ramps,
theme.syntax
)
export const light = createColorScheme({
name: meta.name,
author: meta.author,
appearance: ThemeAppearance.Light,
inputColor: theme.ramps,
override: { syntax: theme.syntax },
})
+9 -8
View File
@@ -1,17 +1,18 @@
import { createColorScheme } from "../common/ramps"
import { createColorScheme, ThemeAppearance } from "../common"
import { ayu, meta as themeMeta, buildTheme } from "./common"
export const meta = {
...themeMeta,
name: `${themeMeta.name} Mirage`
name: `${themeMeta.name} Mirage`,
}
const variant = ayu.mirage
const theme = buildTheme(variant, false)
export const dark = createColorScheme(
meta.name,
false,
theme.ramps,
theme.syntax
)
export const dark = createColorScheme({
name: meta.name,
author: meta.author,
appearance: ThemeAppearance.Dark,
inputColor: theme.ramps,
override: { syntax: theme.syntax },
})
+22 -13
View File
@@ -1,8 +1,20 @@
import chroma from "chroma-js"
import { Meta, ThemeSyntax } from "../common/colorScheme"
import { colorRamp, createColorScheme } from "../common/ramps"
import {
Meta,
colorRamp,
createColorScheme,
ThemeSyntax,
ThemeAppearance,
} from "../common"
const name = "Gruvbox"
export const meta: Meta = {
name: "Gruvbox",
license: {
SPDX: "MIT", // "MIT/X11"
},
author: "morhetz <morhetz@gmail.com>",
url: "https://github.com/morhetz/gruvbox",
}
const color = {
dark0_hard: "#1d2021",
@@ -233,7 +245,13 @@ const buildVariant = (variant: Variant) => {
title: { color: colors.green },
}
return createColorScheme(name, isLight, ramps, syntax)
return createColorScheme({
name,
author: meta.author,
appearance: variant.appearance as ThemeAppearance,
inputColor: ramps,
override: { syntax },
})
}
// Variants
@@ -243,12 +261,3 @@ export const darkSoft = buildVariant(variant[2])
export const lightHard = buildVariant(variant[3])
export const lightDefault = buildVariant(variant[4])
export const lightSoft = buildVariant(variant[5])
export const meta: Meta = {
name,
license: {
SPDX: "MIT", // "MIT/X11"
},
author: "morhetz <morhetz@gmail.com>",
url: "https://github.com/morhetz/gruvbox",
}
+15 -4
View File
@@ -1,7 +1,12 @@
import chroma from "chroma-js"
import { fontWeights } from "../../common"
import { Meta, ThemeSyntax } from "../common/colorScheme"
import { colorRamp, createColorScheme } from "../common/ramps"
import {
Meta,
colorRamp,
createColorScheme,
ThemeSyntax,
ThemeAppearance,
} from "../common"
const name = "One Dark"
@@ -67,8 +72,6 @@ const syntax: ThemeSyntax = {
constructor: { color: color.blue },
}
export const dark = createColorScheme(name, false, ramps, syntax)
export const meta: Meta = {
name,
author: "simurai",
@@ -77,3 +80,11 @@ export const meta: Meta = {
},
url: "https://github.com/atom/atom/tree/master/packages/one-dark-ui",
}
export const dark = createColorScheme({
name: meta.name,
author: meta.author,
appearance: ThemeAppearance.Dark,
inputColor: ramps,
override: { syntax },
})
+15 -4
View File
@@ -1,7 +1,12 @@
import chroma from "chroma-js"
import { fontWeights } from "../../common"
import { Meta, ThemeSyntax } from "../common/colorScheme"
import { colorRamp, createColorScheme } from "../common/ramps"
import {
Meta,
colorRamp,
createColorScheme,
ThemeSyntax,
ThemeAppearance,
} from "../common"
const name = "One Light"
@@ -66,8 +71,6 @@ const syntax: ThemeSyntax = {
variant: { color: color.blue },
}
export const light = createColorScheme(name, true, ramps, syntax)
export const meta: Meta = {
name,
author: "simurai",
@@ -76,3 +79,11 @@ export const meta: Meta = {
},
url: "https://github.com/atom/atom/tree/master/packages/one-light-ui",
}
export const light = createColorScheme({
name: meta.name,
author: meta.author,
appearance: ThemeAppearance.Light,
inputColor: ramps,
override: { syntax },
})
@@ -1,6 +1,5 @@
import chroma from "chroma-js"
import { Meta } from "../common/colorScheme"
import { colorRamp, createColorScheme } from "../common/ramps"
import { Meta, colorRamp, createColorScheme, ThemeAppearance } from "../common"
const name = "Rosé Pine Dawn"
@@ -27,8 +26,6 @@ const ramps = {
magenta: colorRamp(chroma("#79549F")),
}
export const light = createColorScheme(name, true, ramps)
export const meta: Meta = {
name,
author: "edunfelt",
@@ -37,3 +34,11 @@ export const meta: Meta = {
},
url: "https://github.com/edunfelt/base16-rose-pine-scheme",
}
export const light = createColorScheme({
name: meta.name,
author: meta.author,
appearance: ThemeAppearance.Light,
inputColor: ramps,
override: { syntax: {} },
})
@@ -1,6 +1,5 @@
import chroma from "chroma-js"
import { Meta } from "../common/colorScheme"
import { colorRamp, createColorScheme } from "../common/ramps"
import { Meta, colorRamp, createColorScheme, ThemeAppearance } from "../common"
const name = "Rosé Pine Moon"
@@ -27,8 +26,6 @@ const ramps = {
magenta: colorRamp(chroma("#AB6FE9")),
}
export const dark = createColorScheme(name, false, ramps)
export const meta: Meta = {
name,
author: "edunfelt",
@@ -37,3 +34,11 @@ export const meta: Meta = {
},
url: "https://github.com/edunfelt/base16-rose-pine-scheme",
}
export const dark = createColorScheme({
name: meta.name,
author: meta.author,
appearance: ThemeAppearance.Dark,
inputColor: ramps,
override: { syntax: {} },
})
+9 -4
View File
@@ -1,6 +1,5 @@
import chroma from "chroma-js"
import { Meta } from "../common/colorScheme"
import { colorRamp, createColorScheme } from "../common/ramps"
import { Meta, colorRamp, createColorScheme, ThemeAppearance } from "../common"
const name = "Rosé Pine"
@@ -25,8 +24,6 @@ const ramps = {
magenta: colorRamp(chroma("#AB6FE9")),
}
export const dark = createColorScheme(name, false, ramps)
export const meta: Meta = {
name,
author: "edunfelt",
@@ -35,3 +32,11 @@ export const meta: Meta = {
},
url: "https://github.com/edunfelt/base16-rose-pine-scheme",
}
export const dark = createColorScheme({
name: meta.name,
author: meta.author,
appearance: ThemeAppearance.Dark,
inputColor: ramps,
override: { syntax: {} },
})
+9 -4
View File
@@ -1,6 +1,5 @@
import chroma from "chroma-js"
import { Meta } from "../common/colorScheme"
import { colorRamp, createColorScheme } from "../common/ramps"
import { Meta, colorRamp, createColorScheme, ThemeAppearance } from "../common"
const name = "Sandcastle"
@@ -25,8 +24,6 @@ const ramps = {
magenta: colorRamp(chroma("#a87322")),
}
export const dark = createColorScheme(name, false, ramps)
export const meta: Meta = {
name,
author: "gessig",
@@ -35,3 +32,11 @@ export const meta: Meta = {
},
url: "https://github.com/gessig/base16-sandcastle-scheme",
}
export const dark = createColorScheme({
name: meta.name,
author: meta.author,
appearance: ThemeAppearance.Dark,
inputColor: ramps,
override: { syntax: {} },
})
+18 -6
View File
@@ -1,6 +1,5 @@
import chroma from "chroma-js"
import { Meta as Metadata } from "../common/colorScheme"
import { colorRamp, createColorScheme } from "../common/ramps"
import { Meta, colorRamp, createColorScheme, ThemeAppearance } from "../common"
const name = "Solarized"
@@ -27,10 +26,7 @@ const ramps = {
magenta: colorRamp(chroma("#d33682")),
}
export const dark = createColorScheme(`${name} Dark`, false, ramps)
export const light = createColorScheme(`${name} Light`, true, ramps)
export const meta: Metadata = {
export const meta: Meta = {
name,
author: "Ethan Schoonover",
license: {
@@ -38,3 +34,19 @@ export const meta: Metadata = {
},
url: "https://github.com/altercation/solarized",
}
export const dark = createColorScheme({
name: `${name} Dark`,
author: meta.author,
appearance: ThemeAppearance.Dark,
inputColor: ramps,
override: { syntax: {} },
})
export const light = createColorScheme({
name: `${name} Light`,
author: meta.author,
appearance: ThemeAppearance.Light,
inputColor: ramps,
override: { syntax: {} },
})
+9 -3
View File
@@ -1,6 +1,5 @@
import chroma from "chroma-js"
import { Meta } from "../common/colorScheme"
import { colorRamp, createColorScheme } from "../common/ramps"
import { Meta, colorRamp, createColorScheme, ThemeAppearance } from "../common"
const name = "Summercamp"
@@ -27,7 +26,6 @@ const ramps = {
magenta: colorRamp(chroma("#F69BE7")),
}
export const dark = createColorScheme(name, false, ramps)
export const meta: Meta = {
name,
author: "zoefiri",
@@ -36,3 +34,11 @@ export const meta: Meta = {
SPDX: "MIT",
},
}
export const dark = createColorScheme({
name: meta.name,
author: meta.author,
appearance: ThemeAppearance.Dark,
inputColor: ramps,
override: { syntax: {} },
})