2.1.24 • Published 1 month ago

@snyk-mktg/brand-ui v2.1.24

Weekly downloads
-
License
ISC
Repository
github
Last release
1 month ago

snyk-mktg-brand-ui

Snyk BrandUI 🐾 🖥 💻 📱

Total Downloads Latest Release License


Welcome to BrandUI, the official styles library for Snyk’s Marketing design system.

Note: This is the successor to the previous prototype, Snyk MarketingUI (aka "SMUi").

Documentation

Note: BrandUI 2.0 contains breaking changes.

The full documentation can be found at https://brand-ui.snyk.marketing/.

Getting Started with the Styles Library

Setting it up

Install Snyk BrandUI with either npm:

npm i @snyk-mktg/brand-ui

or yarn:

yarn add @snyk-mktg/brand-ui

Compiling it

Compile Snyk BrandUI CSS, JS, and Typescript production files by running the yarn build command. This will build CSS files in a css and js directory in the dist directory. To test out development locally:

Option 1:

  1. Install the Live Server extension in VSCode. This can be found in the Recommended Extensions in the extensions tab.
  2. Create an index.html file at the root of this project. Add this template to the file:
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Snyk BrandUI Test area</title>
    <link rel="stylesheet" href="dist/css/dev/index.css">
</head>

<body class="snyk-brand-ui">
    <main>
        <section class="brandui-section">
            <div class="brandui-container">
                <div class="max-w-6 marg-h-auto txt-center">
                    <h1 class="txt-page-title">BrandUI Testing Area</h1>
                    <p class="txt-body">Use this as a testing area when creating SCSS styles</p>
                </div>
            </div>
        </section>
        <section class="brandui-section">
            <div class="brandui-container">
                <!-- Test inside this container -->

            </div>
        </section>
    </main>
</body>

</html>
  1. You can now add some HTML with BrandUI classes to the section.
  2. Run yarn gulp. This will compile the CSS in the css directory and watch for any changes to .scss files.

Option 2:

The second (and preferred) option is to use Yarn to connect this project locally to the local project you are import this package to.

  1. To link this package Yarn, simple run yarn link. This will add this package to your local Yarn registry. To remove it, run yarn unlink.
  2. In your other local project, run yarn link @snyk-mktg/brand-ui. This will link this package to your project. Yarn will hook into the package imports in your local project.
  3. When you are finished with the local project, make sure to run yarn unlink @snyk-mktg/brand-ui to disconnect it in the registry. It's also suggest to also run yarn install --force and to delete and file cache (ie .next directory in Next.js).

Making changes to variables

If any SCSS variables are changed, make sure to replicate those changes manually to the src/js/utilities and src/utilities/types fiels if they include the same values. Unfortunately, at this moment, there is no automatic way to extract variables for sass package over version 1.8.2. This is due to how Dart Sass changed the way varaibles are imported via the @use rule (which replaced the @import rule).

Using Snyk BrandUI

Snyk BrandUI is compiled both as a whole bundle and into individual files for production in the dist folder.

More documentation to come for how to use BrandUI

2.0.2-beta.9

5 months ago

2.0.2-beta.0

5 months ago

2.0.2-beta.1

5 months ago

2.0.2-beta.2

5 months ago

2.0.2-beta.3

5 months ago

2.0.2-beta.4

5 months ago

2.0.2-beta.5

5 months ago

2.0.2-beta.6

5 months ago

2.0.2-beta.7

5 months ago

2.0.2-beta.8

5 months ago

2.1.2

3 months ago

2.1.1

3 months ago

2.1.4

3 months ago

2.1.3

3 months ago

2.1.6

2 months ago

2.1.5

3 months ago

2.1.8

2 months ago

2.1.7

2 months ago

2.1.0

3 months ago

2.0.2-beta.24

4 months ago

2.0.2-canary.64

6 months ago

2.0.2-beta.23

4 months ago

2.0.2-canary.63

6 months ago

2.0.2-beta.22

4 months ago

2.0.2-canary.62

6 months ago

2.0.2-beta.21

4 months ago

2.0.2-canary.61

6 months ago

2.0.2-beta.28

4 months ago

2.0.2-canary.60

7 months ago

2.0.2-beta.27

4 months ago

2.0.2-beta.26

4 months ago

2.0.2-beta.25

4 months ago

2.0.2-beta.20

4 months ago

2.0.3

3 months ago

2.0.2

3 months ago

2.0.5

3 months ago

2.0.4

3 months ago

2.0.6

3 months ago

2.0.2-canary.59

7 months ago

2.0.2-beta.29

4 months ago

2.0.2-canary.58

7 months ago

2.0.2-canary.57

7 months ago

2.0.2-canary.56

7 months ago

2.0.2-canary.55

7 months ago

2.0.2-canary.54

7 months ago

2.0.2-beta.13

4 months ago

2.0.2-canary.53

7 months ago

2.0.2-beta.12

4 months ago

2.0.2-canary.52

7 months ago

2.0.2-beta.11

5 months ago

2.0.2-canary.51

7 months ago

2.0.2-beta.10

5 months ago

2.0.2-canary.50

7 months ago

2.0.2-beta.17

4 months ago

2.0.2-beta.16

4 months ago

2.0.2-beta.15

4 months ago

2.0.2-beta.14

4 months ago

2.1.9

2 months ago

2.1.16

2 months ago

2.1.17

2 months ago

2.1.14

2 months ago

2.1.12

2 months ago

2.1.13

2 months ago

2.1.10

2 months ago

2.1.11

2 months ago

2.0.2-canary.49

7 months ago

2.0.2-beta.19

4 months ago

2.0.2-canary.48

7 months ago

2.0.2-beta.18

4 months ago

2.0.2-canary.47

7 months ago

2.0.2-canary.46

7 months ago

2.0.2-canary.45

7 months ago

2.0.2-canary.44

7 months ago

2.0.2-canary.43

7 months ago

2.0.2-canary.42

7 months ago

2.0.2-canary.41

7 months ago

2.0.2-canary.40

7 months ago

2.1.18

2 months ago

2.1.19

2 months ago

2.1.23

2 months ago

2.1.24

1 month ago

2.1.21

2 months ago

2.1.22

2 months ago

2.0.2-canary.39

8 months ago

2.1.20

2 months ago

2.0.2-canary.38

8 months ago

2.0.2-canary.37

8 months ago

2.0.2-canary.36

8 months ago

2.0.2-canary.35

8 months ago

2.0.2-canary.34

8 months ago

2.0.2-canary.33

8 months ago

2.0.2-canary.32

8 months ago

2.0.2-canary.31

8 months ago

2.0.2-canary.30

8 months ago

2.0.2-canary.29

8 months ago

2.0.2-canary.28

8 months ago

2.0.2-canary.27

8 months ago

2.0.2-canary.26

8 months ago

2.0.2-canary.25

8 months ago

2.0.2-canary.24

8 months ago

2.0.2-canary.23

8 months ago

2.0.2-canary.22

8 months ago

2.0.2-canary.82

5 months ago

2.0.2-canary.81

5 months ago

2.0.2-canary.80

5 months ago

2.0.2-canary.79

6 months ago

2.0.2-canary.78

6 months ago

2.0.2-canary.77

6 months ago

2.0.2-canary.76

6 months ago

2.0.2-canary.75

6 months ago

2.0.2-canary.74

6 months ago

2.0.2-canary.73

6 months ago

2.0.2-canary.72

6 months ago

2.0.2-canary.71

6 months ago

2.0.2-canary.70

6 months ago

2.0.2-canary.69

6 months ago

2.0.2-canary.68

6 months ago

2.0.2-canary.67

6 months ago

2.0.2-canary.66

6 months ago

2.0.2-canary.65

6 months ago

2.0.2-canary.21

9 months ago

2.0.2-canary.20

9 months ago

2.0.2-canary.19

9 months ago

2.0.2-canary.18

9 months ago

2.0.2-canary.17

9 months ago

2.0.2-canary.15

9 months ago

2.0.2-canary.14

9 months ago

2.0.2-canary.9

10 months ago

2.0.2-canary.13

10 months ago

2.0.2-canary.7

10 months ago

2.0.2-canary.12

10 months ago

2.0.2-canary.8

10 months ago

2.0.2-canary.11

10 months ago

2.0.2-canary.5

10 months ago

2.0.2-canary.10

10 months ago

2.0.2-canary.6

10 months ago

1.2.0

12 months ago

2.0.2-canary.0

11 months ago

1.2.2

11 months ago

1.2.1

12 months ago

2.0.2-canary.3

10 months ago

2.0.2-canary.4

10 months ago

2.0.2-canary.1

10 months ago

2.0.2-canary.2

10 months ago

2.0.1-canary.3

11 months ago

2.0.1-canary.2

11 months ago

2.0.1-canary.1

12 months ago

2.0.1-canary.0

12 months ago

2.0.1-canary.7

11 months ago

2.0.1-canary.6

11 months ago

2.0.1-canary.5

11 months ago

2.0.1-canary.4

11 months ago

2.0.1-canary.9

11 months ago

2.0.1-canary.8

11 months ago

1.1.1

1 year ago

1.1.0

1 year ago

2.0.1-canary.11

11 months ago

2.0.1-canary.12

11 months ago

2.0.1-canary.13

11 months ago

2.0.1-canary.14

11 months ago

1.3.4

11 months ago

1.1.6

1 year ago

1.3.3

11 months ago

1.1.5

1 year ago

1.3.2

11 months ago

1.1.4

1 year ago

1.3.1

11 months ago

1.1.3

1 year ago

1.3.0

11 months ago

1.1.2

1 year ago

2.0.1-canary.10

11 months ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.9

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

2 years ago

1.0.0

2 years ago

0.2.3-canary.12

2 years ago

0.2.3-canary.11

2 years ago

0.2.3-canary.10

2 years ago

0.2.3-canary.9

2 years ago

0.2.3-canary.8

2 years ago

0.2.3

2 years ago

0.2.3-canary.7

2 years ago

0.2.3-canary.6

2 years ago

0.2.3-canary.5

2 years ago

0.2.3-canary.4

2 years ago

0.2.3-canary.3

2 years ago

0.2.3-canary.2

2 years ago

0.2.3-canary.1

2 years ago

0.2.3-canary.0

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago