WIP convert to snake_case

This commit is contained in:
Nate Butler
2023-06-28 18:20:43 -04:00
parent bfdd0824e2
commit 2e162f8af7
49 changed files with 221 additions and 180 deletions
@@ -5,12 +5,12 @@ import {
ThemeConfig,
ThemeAppearance,
ThemeConfigInputColors,
} from "./themeConfig"
} from "./theme_config"
import { getRamps } from "./ramps"
export interface ColorScheme {
name: string
isLight: boolean
is_light: boolean
lowest: Layer
middle: Layer
@@ -155,7 +155,7 @@ export function createColorScheme(theme: ThemeConfig): ColorScheme {
return {
name,
isLight,
is_light: isLight,
ramps,
+2 -2
View File
@@ -1,4 +1,4 @@
export * from "./colorScheme"
export * from "./color_scheme"
export * from "./ramps"
export * from "./syntax"
export * from "./themeConfig"
export * from "./theme_config"
+2 -2
View File
@@ -1,9 +1,9 @@
import chroma, { Color, Scale } from "chroma-js"
import { RampSet } from "./colorScheme"
import { RampSet } from "./color_scheme"
import {
ThemeConfigInputColors,
ThemeConfigInputColorsKeys,
} from "./themeConfig"
} from "./theme_config"
export function colorRamp(color: Color): Scale {
const endColor = color.desaturate(1).brighten(5)
+1 -1
View File
@@ -1,6 +1,6 @@
import deepmerge from "deepmerge"
import { FontWeight, fontWeights } from "../common"
import { ColorScheme } from "./colorScheme"
import { ColorScheme } from "./color_scheme"
import chroma from "chroma-js"
export interface SyntaxHighlightStyle {
@@ -9,12 +9,12 @@ import {
Shadow,
SyntaxHighlightStyle,
ThemeSyntax,
} from "../colorScheme"
} from "../color_scheme"
import { LayerToken, layerToken } from "./layer"
import { PlayersToken, playersToken } from "./players"
import { colorToken } from "./token"
import { Syntax } from "../syntax"
import editor from "../../styleTree/editor"
import editor from "../../style_tree/editor"
interface ColorSchemeTokens {
name: SingleOtherToken
@@ -85,7 +85,7 @@ export function colorSchemeTokens(colorScheme: ColorScheme): ColorSchemeTokens {
},
appearance: {
name: "themeAppearance",
value: colorScheme.isLight ? "light" : "dark",
value: colorScheme.is_light ? "light" : "dark",
type: TokenTypes.OTHER,
},
lowest: layerToken(colorScheme.lowest, "lowest"),
+1 -1
View File
@@ -1,5 +1,5 @@
import { SingleColorToken } from "@tokens-studio/types"
import { Layer, Style, StyleSet } from "../colorScheme"
import { Layer, Style, StyleSet } from "../color_scheme"
import { colorToken } from "./token"
interface StyleToken {
+1 -1
View File
@@ -1,6 +1,6 @@
import { SingleColorToken } from "@tokens-studio/types"
import { ColorScheme, Players } from "../../common"
import { colorToken } from "./token"
import { ColorScheme, Players } from "../color_scheme"
export type PlayerToken = Record<"selection" | "cursor", SingleColorToken>