Skip to content

Commit

Permalink
fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
CarelessCourage committed Dec 29, 2023
1 parent 66b782a commit ef19372
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions packages/core/engine/primitives/color.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { colord, Colord, extend } from 'colord'
import mixPlugin from 'colord/plugins/mix'
import { APCAcontrast, sRGBtoY } from 'apca-w3'
import { UmbraAdjusted } from '../types'
import { settings } from '../defaults'
import { defaultSettings } from '../defaults'

extend([mixPlugin])

Expand All @@ -27,8 +27,8 @@ interface MoveAwayFrom {
}

const stored = {
readability: settings.readability || 11,
iterations: settings.iterations || 15
readability: defaultSettings.readability || 11,
iterations: defaultSettings.iterations || 15
}

function apcaContrast(fg: string | Colord, bg: string | Colord) {
Expand Down
4 changes: 2 additions & 2 deletions packages/core/engine/primitives/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { colord, Colord } from 'colord'
import { UmbraInput, UmbraSettings } from '../types'
import { getReadability } from './color'
import { settings } from '../defaults'
import { defaultSettings } from '../defaults'

interface RandomSettings extends UmbraSettings {
amount: number
Expand All @@ -19,7 +19,7 @@ function randomHex() {

export function randomScheme(randomSettings: RandomSettings = { amount: 1 }): UmbraInput {
return {
settings: { ...settings, ...randomSettings },
settings: { ...defaultSettings, ...randomSettings },
scheme: {
background: randomHex(),
foreground: randomHex(),
Expand Down

0 comments on commit ef19372

Please sign in to comment.