Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theme update preview #4256

Closed
wants to merge 41 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
ea7701d
Update token values for theme update
taysea Oct 11, 2024
f793302
Apply updates to theme
taysea Oct 11, 2024
88bd2e6
Update grommet app
taysea Oct 14, 2024
b1f8e6c
Add login
taysea Oct 14, 2024
4d5d6c9
Cleanup
taysea Oct 14, 2024
869ec0a
Update storage key
taysea Oct 14, 2024
aea878d
Fix Login import
taysea Oct 14, 2024
9c98c40
Fix lineHeight for buttons
taysea Oct 14, 2024
22ce48d
Update tag and toggelgroup
taysea Oct 23, 2024
7fb17d3
Add xsmall button
taysea Oct 23, 2024
8fd9890
Add dataCell selected background
taysea Oct 24, 2024
852fa8e
Update Tabs styles
taysea Oct 25, 2024
02cfd04
Merge master and update selected styles for button
taysea Oct 28, 2024
dc33c26
Merge branch 'master' into theme-update
taysea Oct 28, 2024
6692f4b
Merge branch 'master' into theme-update
taysea Oct 28, 2024
feb5f00
Merge branch 'master' into theme-update
taysea Oct 28, 2024
cc45c81
Merge branch 'master' into theme-update
taysea Oct 28, 2024
2e2c8e8
Calendar updates
taysea Nov 6, 2024
2fbd982
Merge branch 'master' into theme-update
taysea Nov 7, 2024
6259281
Update togglebutton, togglegroup theming
taysea Nov 7, 2024
2c1c587
Dark color updates
taysea Nov 13, 2024
97c5755
Update theme to test use of FormField tokens
taysea Nov 18, 2024
f97e5c0
Merge branch 'master' into theme-update
taysea Nov 18, 2024
369c2ac
Merge branch 'theme-update' into 4356-grommet-formfield
taysea Nov 18, 2024
7fd0b53
Merge pull request #4419 from grommet/4356-grommet-formfield
taysea Nov 19, 2024
d0003c9
Update CheckBoxGroup, RadioButtonGroup FormField styling
taysea Nov 19, 2024
d3e95c1
Update demo app title
taysea Dec 6, 2024
9aa217e
Fix headerCell.textColor
taysea Dec 6, 2024
5ca05c5
Update theme setup to extend published hpe theme with new color names
taysea Dec 6, 2024
d35715c
Remove Acme Next workspace and just make it the default workspace
taysea Dec 6, 2024
63083fd
Move contexts into own files
taysea Dec 6, 2024
69040a1
Add link to sticker sheet in user dropdown
taysea Dec 6, 2024
8b2cefa
Use Grommet ToggleGroup in GlobalHeader
taysea Dec 6, 2024
43fa0e0
Remove workspace select in GlobalHeader
taysea Dec 6, 2024
4b0b69c
Remove density control for now
taysea Dec 6, 2024
1154bf3
Organize sticker sheet and allow it to respond to theme mode
taysea Dec 6, 2024
100c852
Update yarn.lock
taysea Dec 6, 2024
74f5b5a
Remove usage of MISSING.color
taysea Dec 6, 2024
c821a8a
Restructure button tokens based on v0.5.0
taysea Dec 6, 2024
a039b7b
Merge branch 'master' into theme-update
taysea Dec 6, 2024
e826141
Fix theme conditional
taysea Dec 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions aries-site/src/components/Login.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import {
Form,
FormField,
TextInput,
Button,
Page,
PageContent,
PageHeader,
} from 'grommet';
import PropTypes from 'prop-types';

export const Login = ({ setAuthenticated }) => {
return (
<Page>
<PageContent>
<PageHeader
title="HPE Design System Demo"
subtitle="Please log in to view the designs."
/>
<Form
onSubmit={({ value }) => {
if (value.password === process.env.NEXT_PUBLIC_PASSWORD) {
localStorage.setItem('theme-update-demo', 'true');
setAuthenticated(true);
}
}}
>
<FormField
label="Password"
name="password"
htmlFor="password"
contentProps={{ width: 'medium' }}
required
>
<TextInput type="password" name="password" id="password" />
</FormField>
<Button
label="Submit"
type="submit"
kind="primary"
margin={{ top: 'small' }}
/>
</Form>
</PageContent>
</Page>
);
};

Login.propTypes = {
setAuthenticated: PropTypes.func,
};
46 changes: 28 additions & 18 deletions aries-site/src/data/color.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,40 +13,40 @@ const primaryColors = [
{
name: 'brand',
value: 'brand',
hex: colors['green!'],
hex: colors['green!'].light,
},
];

const coreColors = [
{
name: 'purple!',
value: 'purple!',
hex: colors['purple!'],
hex: colors['purple!'].light,
},
{
name: 'teal!',
value: 'teal!',
hex: colors['teal!'],
hex: colors['teal!'].light,
},
{
name: 'blue!',
value: 'blue!',
hex: colors['blue!'],
hex: colors['blue!'].light,
},
{
name: 'red!',
value: 'red!',
hex: colors['red!'],
hex: colors['red!'].light,
},
{
name: 'orange!',
value: 'orange!',
hex: colors['orange!'],
hex: colors['orange!'].light,
},
{
name: 'yellow!',
value: 'yellow!',
hex: colors['yellow!'],
hex: colors['yellow!'].light,
},
];

Expand Down Expand Up @@ -365,7 +365,7 @@ const focusColor = [
{
name: 'focus',
value: colors['teal!'],
hex: colors['teal!'],
hex: colors['teal!'].light,
},
];

Expand Down Expand Up @@ -416,28 +416,38 @@ const layerColor = [
const graphColor = [
{
name: 'graph-0',
value: colors['orange!'],
hex: colors['orange!'],
value: colors['graph-0'].light,
hex: colors['graph-0'].light,
},
{
name: 'graph-1',
value: colors['blue!'],
hex: colors['blue!'],
value: colors['graph-1'].light,
hex: colors['graph-1'].light,
},
{
name: 'graph-2',
value: colors['purple!'],
hex: colors['purple!'],
value: colors['graph-2'].light,
hex: colors['graph-2'].light,
},
{
name: 'graph-3',
value: colors['yellow!'],
hex: colors['yellow!'],
value: colors['graph-3'].light,
hex: colors['graph-3'].light,
},
{
name: 'graph-4',
value: colors['teal!'],
hex: colors['teal!'],
value: colors['graph-4'].light,
hex: colors['graph-4'].light,
},
{
name: 'graph-5',
value: colors['graph-5'].light,
hex: colors['graph-5'].light,
},
{
name: 'graph-6',
value: colors['graph-6'].light,
hex: colors['graph-6'].light,
},
];

Expand Down
2 changes: 1 addition & 1 deletion aries-site/src/examples/foundation/color/ColorPalettes.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,4 +220,4 @@ export const ElevationDark = () => {
export const Overlay = () => layerColor && generateColorExamples(layerColor);

export const GraphColors = () =>
graphColor && generateColorExamples(graphColor);
graphColor && generateColorExamples(graphColor, 'text-strong');
Loading
Loading