-
-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
02f7ad2
commit 6b96f03
Showing
45 changed files
with
212 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import { basedOnPreferredColorScheme, DefaultProperties } from '@react-three/uikit' | ||
import { ComponentPropsWithoutRef } from 'react' | ||
import { Color } from 'three' | ||
|
||
function hsl(h: number, s: number, l: number) { | ||
return new Color().setHSL(h / 360, s / 100, l / 100, 'srgb') | ||
} | ||
|
||
export const colors = basedOnPreferredColorScheme({ | ||
light: { | ||
background: hsl(0, 0, 100), | ||
foreground: hsl(222.2, 84, 4.9), | ||
card: hsl(0, 0, 1), | ||
cardForeground: hsl(222.2, 84, 4.9), | ||
popover: hsl(0, 0, 100), | ||
popoverForeground: hsl(222.2, 84, 4.9), | ||
primary: hsl(100.2, 0.774, 51.2), | ||
primaryForeground: hsl(210, 40, 98), | ||
secondary: hsl(210, 40, 96.1), | ||
secondaryForeground: hsl(222.2, 47.4, 11.2), | ||
muted: hsl(210, 40, 96.1), | ||
mutedForeground: hsl(215.4, 16.3, 46.9), | ||
accent: hsl(210, 40, 96.1), | ||
accentForeground: hsl(222.2, 47.4, 11.2), | ||
destructive: hsl(0, 72.22, 50.59), | ||
destructiveForeground: hsl(210, 40, 98), | ||
border: hsl(214.3, 31.8, 91.4), | ||
input: hsl(214.3, 31.8, 91.4), | ||
ring: hsl(222.2, 84, 4.9), | ||
}, | ||
dark: { | ||
background: hsl(222.2, 84, 4.9), | ||
foreground: hsl(210, 40, 98), | ||
card: hsl(222.2, 84, 4.9), | ||
cardForeground: hsl(210, 40, 98), | ||
popover: hsl(222.2, 84, 4.9), | ||
popoverForeground: hsl(210, 40, 98), | ||
primary: hsl(210, 40, 98), | ||
primaryForeground: hsl(222.2, 47.4, 11.2), | ||
secondary: hsl(217.2, 32.6, 17.5), | ||
secondaryForeground: hsl(210, 40, 98), | ||
muted: hsl(217.2, 32.6, 17.5), | ||
mutedForeground: hsl(215, 20.2, 65.1), | ||
accent: hsl(217.2, 32.6, 17.5), | ||
accentForeground: hsl(210, 40, 98), | ||
destructive: hsl(0, 62.8, 30.6), | ||
destructiveForeground: hsl(210, 40, 98), | ||
border: hsl(217.2, 32.6, 17.5), | ||
input: hsl(217.2, 32.6, 17.5), | ||
ring: hsl(212.7, 26.8, 83.9), | ||
}, | ||
}) | ||
|
||
export function DefaultColors(props: ComponentPropsWithoutRef<typeof DefaultProperties>) { | ||
return ( | ||
<DefaultProperties | ||
scrollbarColor={colors.foreground} | ||
scrollbarBorderRadius={4} | ||
scrollbarOpacity={0.3} | ||
borderColor={colors.border} | ||
color={colors.foreground} | ||
{...props} | ||
/> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.