1.0.33 • Published 6 months ago
ctm-design-system v1.0.33
CompramosTuMoto Design System
How to use
npm install ctm-design-system
Import and use components
import { Button } from 'ctm-design-system';
const Component = () => {
return (
<Button
id={'idForTestingButton'}
type="button"
label="Action"
buttonType={ButtonType.POSITIVE}
onClick={() => doAction()}
/>
);
};
Import and use scss variables and mixins
@import '~ctm-design-system/dist/tokens';
.my-class {
color: $color-primary-400;
padding: $spacing-m;
@include for-desktop {
color: $color-grey-400;
}
}
How to develop
To build the library
From the package folder, run:
npm run build
To deploy the library
From the package folder, run:
npm run deploy
How to test in sandbox
From the root folder, run:
./setup.sh
If you get a permission error, run chmod +x setup.sh
and try again.
1.0.19
10 months ago
1.0.22
8 months ago
1.0.21
8 months ago
1.0.20
9 months ago
1.0.26
8 months ago
1.0.25
8 months ago
1.0.24
8 months ago
1.0.23
8 months ago
1.0.29
6 months ago
1.0.28
6 months ago
1.0.27
8 months ago
1.0.33
6 months ago
1.0.32
6 months ago
1.0.31
6 months ago
1.0.30
6 months ago
1.0.18
10 months ago
1.0.17
11 months ago
1.0.16
11 months ago
1.0.15
11 months ago
1.0.14
11 months ago
1.0.13
11 months ago
1.0.12
11 months ago
1.0.11
11 months ago
1.0.0
11 months ago