Skip to content

Commit

Permalink
deps(primer): update primitives
Browse files Browse the repository at this point in the history
  • Loading branch information
tmillr committed Aug 14, 2024
1 parent c263e7c commit 9e2d42b
Show file tree
Hide file tree
Showing 22 changed files with 15,146 additions and 5,598 deletions.
4 changes: 1 addition & 3 deletions lua/github-theme/palette/github_dark.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ local meta = {
light = false,
}

local primitives =
require('github-theme.palette.primitives.' .. meta.name:gsub('^github%W*', '', 1))

local primitives = require('github-theme.palette.primitives.dark')
local pl = primitives.color.prettylights
local scale = primitives.scale

Expand Down
4 changes: 1 addition & 3 deletions lua/github-theme/palette/github_dark_colorblind.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ local meta = {
light = false,
}

local primitives =
require('github-theme.palette.primitives.' .. meta.name:gsub('^github%W*', '', 1))

local primitives = require('github-theme.palette.primitives.dark_colorblind')
local pl = primitives.color.prettylights
local scale = primitives.scale

Expand Down
1 change: 0 additions & 1 deletion lua/github-theme/palette/github_dark_default.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ local meta = {
}

local primitives = require('github-theme.palette.primitives.dark')

local pl = primitives.color.prettylights
local scale = primitives.scale

Expand Down
4 changes: 1 addition & 3 deletions lua/github-theme/palette/github_dark_dimmed.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ local meta = {
light = false,
}

local primitives =
require('github-theme.palette.primitives.' .. meta.name:gsub('^github%W*', '', 1))

local primitives = require('github-theme.palette.primitives.dark_dimmed')
local pl = primitives.color.prettylights
local scale = primitives.scale

Expand Down
4 changes: 1 addition & 3 deletions lua/github-theme/palette/github_dark_high_contrast.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ local meta = {
light = false,
}

local primitives =
require('github-theme.palette.primitives.' .. meta.name:gsub('^github%W*', '', 1))

local primitives = require('github-theme.palette.primitives.dark_high_contrast')
local pl = primitives.color.prettylights
local scale = primitives.scale

Expand Down
4 changes: 1 addition & 3 deletions lua/github-theme/palette/github_dark_tritanopia.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ local meta = {
light = false,
}

local primitives =
require('github-theme.palette.primitives.' .. meta.name:gsub('^github%W*', '', 1))

local primitives = require('github-theme.palette.primitives.dark_tritanopia')
local pl = primitives.color.prettylights
local scale = primitives.scale

Expand Down
8 changes: 3 additions & 5 deletions lua/github-theme/palette/github_light.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ local meta = {
light = true,
}

local primitives =
require('github-theme.palette.primitives.' .. meta.name:gsub('^github%W*', '', 1))

local primitives = require('github-theme.palette.primitives.light')
local pl = primitives.color.prettylights
local scale = primitives.scale

Expand Down Expand Up @@ -56,8 +54,8 @@ local palette = {
neutral = {
emphasis_plus = scale.neutral[10],
emphasis = scale.neutral[6],
muted = BG:blend(C(scale.neutral4]), 0.2):to_css(),
subtle = BG:blend(C(scale.neutral2]), 0.5):to_css(),
muted = BG:blend(C(scale.neutral[4]), 0.2):to_css(),
subtle = BG:blend(C(scale.neutral[2]), 0.5):to_css(),
},

accent = {
Expand Down
4 changes: 1 addition & 3 deletions lua/github-theme/palette/github_light_colorblind.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ local meta = {
light = true,
}

local primitives =
require('github-theme.palette.primitives.' .. meta.name:gsub('^github%W*', '', 1))

local primitives = require('github-theme.palette.primitives.light_colorblind')
local pl = primitives.color.prettylights
local scale = primitives.scale

Expand Down
1 change: 0 additions & 1 deletion lua/github-theme/palette/github_light_default.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ local meta = {
}

local primitives = require('github-theme.palette.primitives.light')

local pl = primitives.color.prettylights
local scale = primitives.scale

Expand Down
4 changes: 1 addition & 3 deletions lua/github-theme/palette/github_light_high_contrast.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ local meta = {
light = true,
}

local primitives =
require('github-theme.palette.primitives.' .. meta.name:gsub('^github%W*', '', 1))

local primitives = require('github-theme.palette.primitives.light_high_contrast')
local pl = primitives.color.prettylights
local scale = primitives.scale

Expand Down
4 changes: 1 addition & 3 deletions lua/github-theme/palette/github_light_tritanopia.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ local meta = {
light = true,
}

local primitives =
require('github-theme.palette.primitives.' .. meta.name:gsub('^github%W*', '', 1))

local primitives = require('github-theme.palette.primitives.light_tritanopia')
local pl = primitives.color.prettylights
local scale = primitives.scale

Expand Down
Loading

0 comments on commit 9e2d42b

Please sign in to comment.