Skip to content

Commit

Permalink
Used tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinaKozlova committed Dec 12, 2024
1 parent a347e3e commit 53f9401
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
import { tinycolor } from '@ctrl/tinycolor';
import { makeStyles, Button, SwatchPicker, EmptySwatch, ColorSwatch, Label } from '@fluentui/react-components';
import { makeStyles, Button, SwatchPicker, EmptySwatch, ColorSwatch, Label, tokens } from '@fluentui/react-components';
import {
ColorPicker,
ColorSlider,
Expand All @@ -20,16 +20,16 @@ const useStyles = makeStyles({
previewColor: {
width: '50px',
height: '50px',
borderRadius: '4px',
border: '1px solid #ccc',
margin: '10px 0',
borderRadius: tokens.borderRadiusMedium,
border: `1px solid ${tokens.colorNeutralStroke1}`,
margin: `${tokens.spacingVerticalMNudge} 0`,
},
button: {
marginRight: '8px',
marginRight: tokens.spacingHorizontalS,
},
input: {
display: 'block',
margin: '6px 0',
margin: `${tokens.spacingVerticalSNudge} 0`,
},
row: {
display: 'flex',
Expand All @@ -45,6 +45,8 @@ const useStyles = makeStyles({

const ITEMS_LIMIT = 8;
const DEFAULT_COLOR_HSV = tinycolor('#2be700').toHsv();
const DEFAULT_SELECTED_VALUE = 'FFF';
const DEFAULT_SELECTED_COLOR = '#FFFFFF';

export const ColorAndSwatchPickerExample = () => {
const styles = useStyles();
Expand Down

0 comments on commit 53f9401

Please sign in to comment.