Skip to content

Commit

Permalink
feat: Changed font name to generic
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Pinedo committed Sep 26, 2022
1 parent bbabc9a commit ab3b3c3
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# dali-icons

Dali icons is an icon library used by Devo products; developed and maintend by
Dali Icons is an icon library used by Devo products; developed and maintend by
the QuVis team.

You could use this package for components or for icon font.
Expand Down
4 changes: 2 additions & 2 deletions config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const config = {
prefix: 'Di',
fontName: 'di',
prefix: 'Icon',
fontName: 'icon',
};
2 changes: 1 addition & 1 deletion scripts/font/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ svgtofont({
normalize: true,
},
}).then(() => {
console.log('Font: Generated dali-icons font!');
console.log('Font: Generated icons fonts!');

const stylesFile = path.resolve(pkgPath, `${config.fontName}-styles.scss`);
const allStyles = fs.readFileSync(stylesFile).toString();
Expand Down
2 changes: 1 addition & 1 deletion stories/Introduction.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Meta } from '@storybook/addon-docs';

<Meta title="Introduction" />

# Dali Icons
# Devo Icons

The biggest icons resource on Devo!

Expand Down
4 changes: 2 additions & 2 deletions stories/doc/AddIcons.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ Let's see an example:
</svg>
```

The name for the new icon will be the `Di` prefix and the `<title>` tag
The name for the new icon will be the `Icon` prefix and the `<title>` tag
content, converted to the camelCase format.

Following the previous example, the name for the icon will be _DiBubbleChart_.
Following the previous example, the name for the icon will be _IconBubbleChart_.

## Generate all the packages icons

Expand Down
12 changes: 6 additions & 6 deletions stories/font/Usage.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,27 @@ import { Meta } from '@storybook/addon-docs';

With this you will have all icons classes:

- `.di-check`
- `.di-delete`
- `.di-refresh`
- `.icon-check`
- `.icon-delete`
- `.icon-refresh`
- ...

You could check all the classes in the [Gallery](?path=/story/gallery--icons)

## CSS

```js
import '@devoinc/dali-icons/dist/di.css';
import '@devoinc/dali-icons/dist/icon-styles.css';
```

## SASS

```js
import '@devoinc/dali-icons/dist/di.scss';
import '@devoinc/dali-icons/dist/icon.scss';
```

## LESS

```js
import '@devoinc/dali-icons/dist/di.less';
import '@devoinc/dali-icons/dist/icon-styles.less';
```
6 changes: 3 additions & 3 deletions stories/react/Icon.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import * as React from 'react';
import { Story, Meta } from '@storybook/react';

import { DiSave } from '../../dist/';
import { IconBubbleChart } from '../../dist/';

export default {
title: 'React/Icon',
component: DiSave,
component: IconBubbleChart,
argTypes: {
color: {
control: 'color',
Expand All @@ -22,7 +22,7 @@ export default {
},
} as Meta;

export const SingleIcon: Story = (args) => <DiSave {...args} />;
export const SingleIcon: Story = (args) => <IconBubbleChart {...args} />;
SingleIcon.args = {
title: 'Some title',
color: 'rgba(0, 0, 190, 1)',
Expand Down

0 comments on commit ab3b3c3

Please sign in to comment.