Skip to content

Commit

Permalink
Merge pull request #4292 from grommet/sandbox-theme
Browse files Browse the repository at this point in the history
Update sandbox theme
  • Loading branch information
taysea authored Oct 28, 2024
2 parents c096eb6 + 6265eee commit 4dd1300
Show file tree
Hide file tree
Showing 5 changed files with 463 additions and 658 deletions.
4 changes: 2 additions & 2 deletions design-tokens/tokens/component/component.default.json
Original file line number Diff line number Diff line change
Expand Up @@ -3357,7 +3357,7 @@
"toolbar": {
"paddingX": {
"$type": "number",
"$value": "{button.medium.default.paddingX}",
"$value": "{element.medium.paddingX.default}",
"$description": "",
"$extensions": {
"com.figma": {
Expand Down Expand Up @@ -8781,7 +8781,7 @@
"disabled": {
"textColor": {
"$type": "color",
"$value": "{color.text.strong}",
"$value": "{color.text.disabled}",
"$description": "",
"$extensions": {
"com.figma": {
Expand Down
12 changes: 12 additions & 0 deletions design-tokens/tokens/semantic/color.dark.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,18 @@
"codeSyntax": {}
}
}
},
"hover": {
"$type": "color",
"$value": "{base.color.brand}",
"$description": "Selected (or checked) colour. Used for ‘selected’ state. Examples include, checked checkboxes, checked radios, on toggle, active tabs.",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["FRAME_FILL", "SHAPE_FILL"],
"codeSyntax": {}
}
}
}
},
"weak": {
Expand Down
12 changes: 12 additions & 0 deletions design-tokens/tokens/semantic/color.light.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,18 @@
"codeSyntax": {}
}
}
},
"hover": {
"$type": "color",
"$value": "{base.color.brand}",
"$description": "Selected (or checked) colour. Used for ‘selected’ state. Examples include, checked checkboxes, checked radios, on toggle, active tabs.",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["FRAME_FILL", "SHAPE_FILL"],
"codeSyntax": {}
}
}
}
},
"weak": {
Expand Down
31 changes: 28 additions & 3 deletions sandbox/grommet-app/src/pages/sticker-sheet/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ import {
ThumbsRating,
DataTable,
Meter,
ToggleGroup,
} from 'grommet';
import { User } from 'grommet-icons';
import { User, Table, List, MapLocation } from 'grommet-icons';
import { hpe } from 'grommet-theme-hpe';
import { refresh as hpeCurrent } from '../../theme';
import { current as hpeCurrent } from '../../theme';

const textSizes = [
'xsmall',
Expand Down Expand Up @@ -419,7 +420,31 @@ const StickerSheet = () => {
</Tabs>
</Compare>
<Compare>
<Tag value="Value" name="Name" />
<Box align="start" gap="small">
<ToggleGroup
value={2}
options={[
{
value: 1,
icon: <Table />,
},
{
value: 2,
icon: <List />,
},
{
value: 3,
icon: <MapLocation />,
},
]}
/>
</Box>
</Compare>
<Compare>
<Box align="start" gap="small">
<Tag value="Value" name="Name" />
<Tag value="Value" name="Name" onRemove={() => {}} />
</Box>
</Compare>
<Compare>
<TextArea placeholder="Type something" />
Expand Down
Loading

0 comments on commit 4dd1300

Please sign in to comment.