Skip to content

Commit

Permalink
refactor: Convert atom-one-light theme to Stylus variables
Browse files Browse the repository at this point in the history
- Replace CSS rules with Stylus variables for easier customization
- Simplify code structure by removing redundant selectors and comments
- Maintain original color scheme for consistency
  • Loading branch information
EvanNotFound committed Aug 31, 2024
1 parent 2f78b39 commit e3f73d3
Showing 1 changed file with 18 additions and 94 deletions.
112 changes: 18 additions & 94 deletions source/css/common/codeblock/hljs-themes/light/atom-one-light.styl
Original file line number Diff line number Diff line change
@@ -1,94 +1,18 @@
/*
Atom One Light by Daniel Gamage
Original One Light Syntax theme from https://github.com/atom/one-light-syntax
base: #fafafa
mono-1: #383a42
mono-2: #686b77
mono-3: #a0a1a7
hue-1: #0184bb
hue-2: #4078f2
hue-3: #a626a4
hue-4: #50a14f
hue-5: #e45649
hue-5-2: #c91243
hue-6: #986801
hue-6-2: #c18401
*/

.hljs {
color: #383a42;
background: #fafafa;
}

.hljs-comment,
.hljs-quote {
color: #a0a1a7;
font-style: italic;
}

.hljs-doctag,
.hljs-keyword,
.hljs-formula {
color: #a626a4;
}

.hljs-section,
.hljs-name,
.hljs-selector-tag,
.hljs-deletion,
.hljs-subst {
color: #e45649;
}

.hljs-literal {
color: #0184bb;
}

.hljs-string,
.hljs-regexp,
.hljs-addition,
.hljs-attribute,
.hljs-meta .hljs-string {
color: #50a14f;
}

.hljs-attr,
.hljs-variable,
.hljs-template-variable,
.hljs-type,
.hljs-selector-class,
.hljs-selector-attr,
.hljs-selector-pseudo,
.hljs-number {
color: #986801;
}

.hljs-symbol,
.hljs-bullet,
.hljs-link,
.hljs-meta,
.hljs-selector-id,
.hljs-title {
color: #4078f2;
}

.hljs-built_in,
.hljs-title.class_,
.hljs-class .hljs-title {
color: #c18401;
}

.hljs-emphasis {
font-style: italic;
}

.hljs-strong {
font-weight: bold;
}

.hljs-link {
text-decoration: underline;
}
$highlight-foreground = #383a42
$highlight-background = #fafafa
$highlight-keyword = #a626a4
$highlight-link = #4078f2
$highlight-built-in = #c18401
$highlight-number = #986801
$highlight-string = #50a14f
$highlight-regexp = #50a14f
$highlight-subst = #e45649
$highlight-comment = #a0a1a7
$highlight-doctag = #a626a4
$highlight-meta = #4078f2
$highlight-variable = #986801
$highlight-attr = #986801
$highlight-section = #e45649
$highlight-bullet = #4078f2
$highlight-addition = #50a14f
$highlight-deletion = #e45649

0 comments on commit e3f73d3

Please sign in to comment.