1.0.33 • Published 2 years ago

ctm-design-system v1.0.33

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.26

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.23

2 years ago

1.0.29

2 years ago

1.0.28

2 years ago

1.0.27

2 years ago

1.0.33

2 years ago

1.0.32

2 years ago

1.0.31

2 years ago

1.0.30

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.0

2 years ago