1.2.19 • Published 3 years ago

@anjuna/theme v1.2.19

Weekly downloads
96
License
MIT
Repository
-
Last release
3 years ago

@anjuna/theme

The @anjuna/theme package consists of a few different pieces to use in your app.

  • Raw SASS files to be imported directly into your app.
  • Compiled CSS to be included in your app via CDN.
    • theme.css: includes color palette and utility classes to be used by libraries and apps.
    • icons.css: includes color palette and utility classes to be used by libraries and apps.
    • application.css: Subset of Bootstrap blended with our theme for use by applications.
  • Static assets (favicon for example) which are also included via the CDN.

Using CSS via CDN

Using the CDN is comparable to using any other CDN assets. CSS can either be included either directly in the application HTML like such:

<link href="//cdn.zuora.com/@anjuna/theme@0.0.0/css/dist/application.css" rel="stylesheet">

Or you can import the file into your CSS/SASS like this:

@import url('//cdn.zuora.com/@anjuna/theme@0.0.0/dist/css/application.css');

Using assets

Assets on the CDN work the same way except they are in the "assets" path, not the "css" path.

<link rel="shortcut icon" href="//cdn.zuora.com/@anjuna/theme@0.0.0/dist/assets/cloud-favicon.ico" type="image/x-icon" />

Using the SASS

To use Bootstrap and Anjuna SASS variables and mixins within your application, install the @anjuna/theme npm package.

npm install @anjuna/theme

The shared sass file can then be imported into your application's sass.

@import "~@anjuna/theme/sass/anjuna";

NOTE: While it is possible to just import the anjuna.scss sass file wherever you need, that is not recommended. Instead we suggest creating your own _shared.scss partial, including anjuna.scss there, and then including your application specific shared file into your other sass files. This will let you leverage not only the Bootstrap and Anjuna helpers, but also your own. Like the Anjuna sass file, your own shared file shouldn't generate any output.

1.2.19

3 years ago

1.2.18

3 years ago

1.2.17

3 years ago

1.2.16

3 years ago

1.2.15

3 years ago

1.2.14

4 years ago

1.2.13

4 years ago

1.2.12

4 years ago

1.2.7

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.2

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

1.0.0-rc.72

4 years ago

1.0.0-rc.71

4 years ago

1.0.0-rc.70

4 years ago

1.0.0-rc.68

4 years ago

1.0.0-rc.67

4 years ago

1.0.0-rc.69

4 years ago

1.0.0-rc.65

4 years ago

1.0.0-rc.60

4 years ago

1.0.0-rc.59

4 years ago

1.0.0-rc.64

4 years ago

1.0.0-rc.63

4 years ago

1.0.0-rc.55

4 years ago

1.0.0-rc.54

4 years ago

1.0.0-rc.11

4 years ago

1.0.0-rc.9

4 years ago

1.0.0-rc.10

4 years ago

1.0.0-rc.8

4 years ago

1.0.0-rc.7

4 years ago

1.0.0-rc.6

4 years ago

1.0.0-rc.5

5 years ago

1.0.0-rc.4

5 years ago

1.0.0-rc.3

5 years ago

1.0.0-rc.2

5 years ago

1.0.0-rc.1

5 years ago

1.0.0-rc.0

5 years ago

1.0.0-beta.26

5 years ago

1.0.0-beta.25

5 years ago

1.0.0-beta.24

5 years ago

1.0.0-beta.23

5 years ago

1.0.0-beta.21

5 years ago

1.0.0-beta.20

5 years ago

1.0.0-beta.19

5 years ago

1.0.0-beta.18

5 years ago

1.0.0-beta.17

5 years ago

1.0.0-beta.15

5 years ago

1.0.0-beta.12

5 years ago

1.0.0-beta.6

5 years ago

1.0.0-beta.4

5 years ago

1.0.0-beta.3

5 years ago

1.0.0-beta.2

5 years ago

1.0.0-beta.1

5 years ago

1.0.0-beta.0

5 years ago

0.6.0

5 years ago

0.4.0

5 years ago

0.2.8

5 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.1.0-alpha.0

5 years ago

0.0.0

5 years ago