Skip to content

Colors

The color palette defines a range of colors used in the app.

Base colors

The base colors is a neutral color palette ranging from light to dark. These values should typically only be defined by themes.

VariableLight Mode DefaultDark Mode Default
--color-base-00#ffffff#181926
--color-base-05#eeeeee#1e2030
--color-base-10#fcfcfc#24273a
--color-base-20#dedede#363a4f
--color-base-25#7d84a2#484c64
--color-base-30#6c728d#5a5f78
--color-base-35#5a5f78#6c728d
--color-base-40#484c64#7d84a2
--color-base-50#737478#8f97b7
--color-base-60#707070#a1aacb
--color-base-70#4a4a4f#b3bce0
--color-base-10015 15 15197 207 245

Accent color

The accent color is used in various places throughout the app, such as decks and primary buttons, and can be overridden by the user under SettingsAppearance in the Engram app.

VariableDefault value
--accent169 213 249

Extended Colors

Extended color variables define the broader range of colors used for status messages (errors, warnings, success), callouts, syntax highlighting, and graph nodes.

Extended colors have an additional RGB variable with a -rgb suffix that you can use to create colors with opacity, using the rgb function.

For example, the following snippet uses the default variable to set the text color, and the RGB variable to set a background color to red with 20% opacity.

body {
color: var(--color-red);
background-color: rgb(var(--color-red-rgb) / 0.2);
}
VariableLight Mode DefaultDark Mode Default
--color-red#c35858#c35858
--color-yellow#fbbf24#fbbf24
--color-green#4ade80#4ade80
--color-green-alt#58CC02#58CC02
--color-blue#60a5fa#60a5fa
--color-cyan#89ddff#89ddff
--color-purple#a78bfa#a78bfa
--color-gold#FFBF00#eab308
--color-red-rgb195 88 88195 88 88
--color-yellow-rgb251 191 36251 191 36
--color-green-rgb74 222 12874 222 128
--color-blue-rgb96 165 25096 165 250
--color-cyan-rgb137 221 255137 221 255
--color-purple-rgb167 139 250167 139 250
--color-gold-rgb255 191 0234 179 8

Black and white

Black and white colors let you create masks with opacity.

VariableLight Mode DefaultDark Mode Default
--mono-rgb-0255 255 2550 0 0
--mono-rgb-1000 0 0255 255 255

Semantic colors

Semantic colors are derived from the base color palette based on their intended use.

VariableDescription
--background-primaryPrimary background
--background-primary-altBackground for surfaces on top of primary background
--background-primary-translucentBackground thats used to turn the primary color translucent
--background-secondarySecondary background
--background-secondary-altBackground for surfaces on top of secondary background
--background-secondary-translucentBackground thats used to turn the secondary color translucent
--background-modifier-hoverHovered elements
--background-modifier-active-hoverActive hovered elements
--background-modifier-borderBorder color
--background-modifier-border-hoverBorder color on hover
--background-modifier-errorError background
--background-modifier-error-activeError background (active)

Interactive colors

Colors used for the backgrounds of various interactive elements like buttons and selects.

VariableDescription
--interactive-normalBackground for standard interactive elements
--interactive-hoverBackground for standard interactive elements on hover
--interactive-accentBackground for accented interactive elements

Text Foreground

VariableDescription
--text-normalNormal text
--text-mutedMuted text
--text-faintFaint text
--text-on-accentText on accent background when accent is dark
--text-on-accent-invertedText on accent background when accent is light
--text-successSuccess text
--text-warningWarning text
--text-errorError text
--text-accentAccent text