Skip to content

Commit c7eb0a1

Browse files
authored
Merge pull request #139 from chomnr/gh-pages
Add solid-circle-flags to README
2 parents 98574d2 + 7df3d8f commit c7eb0a1

1 file changed

Lines changed: 31 additions & 37 deletions

File tree

README.md

Lines changed: 31 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -13,32 +13,27 @@ https://hatscripts.github.io/circle-flags/flags/xx.svg
1313
For example, the following code:
1414

1515
```html
16-
<img src="https://hatscripts.github.io/circle-flags/flags/br.svg" width="48">
17-
<img src="https://hatscripts.github.io/circle-flags/flags/cn.svg" width="48">
18-
<img src="https://hatscripts.github.io/circle-flags/flags/gb.svg" width="48">
19-
<img src="https://hatscripts.github.io/circle-flags/flags/id.svg" width="48">
20-
<img src="https://hatscripts.github.io/circle-flags/flags/in.svg" width="48">
21-
<img src="https://hatscripts.github.io/circle-flags/flags/ng.svg" width="48">
22-
<img src="https://hatscripts.github.io/circle-flags/flags/ru.svg" width="48">
23-
<img src="https://hatscripts.github.io/circle-flags/flags/us.svg" width="48">
16+
<img src="https://hatscripts.github.io/circle-flags/flags/br.svg" width="48" />
17+
<img src="https://hatscripts.github.io/circle-flags/flags/cn.svg" width="48" />
18+
<img src="https://hatscripts.github.io/circle-flags/flags/gb.svg" width="48" />
19+
<img src="https://hatscripts.github.io/circle-flags/flags/id.svg" width="48" />
20+
<img src="https://hatscripts.github.io/circle-flags/flags/in.svg" width="48" />
21+
<img src="https://hatscripts.github.io/circle-flags/flags/ng.svg" width="48" />
22+
<img src="https://hatscripts.github.io/circle-flags/flags/ru.svg" width="48" />
23+
<img src="https://hatscripts.github.io/circle-flags/flags/us.svg" width="48" />
2424
```
2525

26-
...produces this:<br/><br/>
27-
<img src="https://hatscripts.github.io/circle-flags/flags/br.svg" width="48">
28-
<img src="https://hatscripts.github.io/circle-flags/flags/cn.svg" width="48">
29-
<img src="https://hatscripts.github.io/circle-flags/flags/gb.svg" width="48">
30-
<img src="https://hatscripts.github.io/circle-flags/flags/id.svg" width="48">
31-
<img src="https://hatscripts.github.io/circle-flags/flags/in.svg" width="48">
32-
<img src="https://hatscripts.github.io/circle-flags/flags/ng.svg" width="48">
33-
<img src="https://hatscripts.github.io/circle-flags/flags/ru.svg" width="48">
34-
<img src="https://hatscripts.github.io/circle-flags/flags/us.svg" width="48">
26+
...produces this:<br/><br/> <img src="https://hatscripts.github.io/circle-flags/flags/br.svg" width="48"> <img src="https://hatscripts.github.io/circle-flags/flags/cn.svg" width="48"> <img src="https://hatscripts.github.io/circle-flags/flags/gb.svg" width="48"> <img src="https://hatscripts.github.io/circle-flags/flags/id.svg" width="48"> <img src="https://hatscripts.github.io/circle-flags/flags/in.svg" width="48"> <img src="https://hatscripts.github.io/circle-flags/flags/ng.svg" width="48"> <img src="https://hatscripts.github.io/circle-flags/flags/ru.svg" width="48"> <img src="https://hatscripts.github.io/circle-flags/flags/us.svg" width="48">
3527

3628
To view all the available flags, check [the gallery](https://hatscripts.github.io/circle-flags/gallery).
3729

3830
### React
3931

40-
If you're using [React](https://reactjs.org), you may want to try the
41-
[react-circle-flags](https://www.npmjs.com/package/react-circle-flags) package.
32+
If you're using [React](https://reactjs.org), you may want to try the [react-circle-flags](https://www.npmjs.com/package/react-circle-flags) package.
33+
34+
### SolidJS
35+
36+
If you're using [SolidJS](https://www.solidjs.com/), you may want to try the [solid-circle-flags](https://www.npmjs.com/package/solid-circle-flags) package.
4237

4338
### NPM
4439

@@ -51,7 +46,7 @@ npm install --save https://github.com/HatScripts/circle-flags
5146
### Userscripts
5247

5348
- [Google Translate: Filter & Flags](https://github.com/HatScripts/google-translate-filter-and-flags) - Filters languages and shows country flags on Google Translate
54-
- [Wiktionary: Filter & Flags](https://github.com/HatScripts/wiktionary-filter-and-flags) - Filters languages and shows country flags on Wiktionary
49+
- [Wiktionary: Filter & Flags](https://github.com/HatScripts/wiktionary-filter-and-flags) - Filters languages and shows country flags on Wiktionary
5550

5651
## Contributing
5752

@@ -69,26 +64,25 @@ Then commit the changes, and submit them as a pull request.
6964

7065
### The color palette
7166

72-
Submitted flags should conform to the following color palette.<br/>
73-
Try to match the flag's original colors with the nearest color from the palette.
74-
75-
* `#eeeeee`: white
76-
* `#acabb1`: gray
77-
* `#333333`: black
78-
* `#a2001d`: dark red
79-
* `#d80027`: red
80-
* `#ff9811`: orange
81-
* `#ffda44`: yellow
82-
* `#6da544`: green
83-
* `#496e2d`: dark green
84-
* `#338af3`: light blue
85-
* `#0052b4`: blue
67+
Submitted flags should conform to the following color palette.<br/> Try to match the flag's original colors with the nearest color from the palette.
68+
69+
- `#eeeeee`: white
70+
- `#acabb1`: gray
71+
- `#333333`: black
72+
- `#a2001d`: dark red
73+
- `#d80027`: red
74+
- `#ff9811`: orange
75+
- `#ffda44`: yellow
76+
- `#6da544`: green
77+
- `#496e2d`: dark green
78+
- `#338af3`: light blue
79+
- `#0052b4`: blue
8680

8781
Special cases:
8882

89-
* `#002266`: dark blue (only one usage: [<img src="https://hatscripts.github.io/circle-flags/flags/td.svg" width="16"> Chad](https://github.com/HatScripts/circle-flags/blob/gh-pages/flags/td.svg), to differentiate from [<img src="https://hatscripts.github.io/circle-flags/flags/ro.svg" width="16"> Romania](https://github.com/HatScripts/circle-flags/blob/gh-pages/flags/ro.svg))
90-
* `#4a1f63`: purple (only one usage: [<img src="https://hatscripts.github.io/circle-flags/flags/es-ib.svg" width="16"> Balearic Islands](https://github.com/HatScripts/circle-flags/blob/gh-pages/flags/es-ib.svg))
91-
* `#751a46`: dark pink (only one usage: [<img src="https://hatscripts.github.io/circle-flags/flags/qa.svg" width="16"> Qatar](https://github.com/HatScripts/circle-flags/blob/gh-pages/flags/qa.svg))
83+
- `#002266`: dark blue (only one usage: [<img src="https://hatscripts.github.io/circle-flags/flags/td.svg" width="16"> Chad](https://github.com/HatScripts/circle-flags/blob/gh-pages/flags/td.svg), to differentiate from [<img src="https://hatscripts.github.io/circle-flags/flags/ro.svg" width="16"> Romania](https://github.com/HatScripts/circle-flags/blob/gh-pages/flags/ro.svg))
84+
- `#4a1f63`: purple (only one usage: [<img src="https://hatscripts.github.io/circle-flags/flags/es-ib.svg" width="16"> Balearic Islands](https://github.com/HatScripts/circle-flags/blob/gh-pages/flags/es-ib.svg))
85+
- `#751a46`: dark pink (only one usage: [<img src="https://hatscripts.github.io/circle-flags/flags/qa.svg" width="16"> Qatar](https://github.com/HatScripts/circle-flags/blob/gh-pages/flags/qa.svg))
9286

9387
## License
9488

0 commit comments

Comments
 (0)