Skip to content

Commit

Permalink
refactor: remove neutral badge variant - it's already a tone
Browse files Browse the repository at this point in the history
  • Loading branch information
maxholman committed Dec 25, 2022
1 parent a97a2e6 commit b4354f7
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions lib/badges.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@ import { contrastSchemeVars } from './schemes/color.css.js';
import { toneH, toneS } from './tone.css.js';
import { hsl } from './utils.js';

export type BadgeVariant =
| 'standard'
| 'neutral'
| 'ghost'
| 'subtle'
| 'transparent';
export type BadgeVariant = 'standard' | 'ghost' | 'subtle' | 'transparent';

const basePadding = createVar();

Expand Down Expand Up @@ -47,11 +42,6 @@ const variantRules: Record<
color: hsl(toneH, toneS, contrastSchemeVars.level0.l),
borderColor: hsl(toneH, toneS, contrastSchemeVars.level3.l),
},
neutral: {
backgroundColor: hsl(toneH, toneS, 50),
color: hsl(toneH, toneS, '90%'),
borderColor: hsl(toneH, toneS, '90%'),
},
ghost: {
color: hsl(toneH, toneS, contrastSchemeVars.level3.l),
borderColor: hsl(toneH, toneS, contrastSchemeVars.level3.l),
Expand Down

0 comments on commit b4354f7

Please sign in to comment.