mirror of
https://github.com/Steffo99/steffula-code.git
synced 2024-11-21 18:44:19 +00:00
Add palette to the readme
This commit is contained in:
parent
3939415c5b
commit
9d507db1bf
2 changed files with 77 additions and 0 deletions
13
.scripts/gen-palette.py
Executable file
13
.scripts/gen-palette.py
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
import re
|
||||
|
||||
with open("../themes/Steffula-color-theme.json") as file:
|
||||
while line := file.readline():
|
||||
if match := re.search(r'''["']name["']: ?["']([a-z-]+)["'],''', line):
|
||||
name = match.group(1)
|
||||
while line := file.readline():
|
||||
if match := re.search(r'''["']foreground["']: ?["'][#]([0-9a-f]+)["'],''', line):
|
||||
color = match.group(1)
|
||||
print(f"- ![{name}](https://img.shields.io/static/v1?style=flat-square&label={name}&color={color}&message=%23{color})")
|
||||
break
|
64
README.md
64
README.md
|
@ -11,3 +11,67 @@ Inspired and based on the IntelliJ IDEA "Darcula" color theme.
|
|||
![Screenshot 2](screenshots/screenshot-2.png)
|
||||
|
||||
![Screenshot 3](screenshots/screenshot-3.png)
|
||||
|
||||
## Palette
|
||||
|
||||
> Generated with [`.scripts/gen-palette.py`](.scripts/gen-palette.py)!
|
||||
|
||||
- ![base](https://img.shields.io/static/v1?style=flat-square&label=base&color=a9b7c6&message=%23a9b7c6)
|
||||
- ![comment](https://img.shields.io/static/v1?style=flat-square&label=comment&color=555555&message=%23555555)
|
||||
- ![comment-marker](https://img.shields.io/static/v1?style=flat-square&label=comment-marker&color=707070&message=%23707070)
|
||||
- ![keyword](https://img.shields.io/static/v1?style=flat-square&label=keyword&color=ff9340&message=%23ff9340)
|
||||
- ![punctuation](https://img.shields.io/static/v1?style=flat-square&label=punctuation&color=cc7832&message=%23cc7832)
|
||||
- ![namespace](https://img.shields.io/static/v1?style=flat-square&label=namespace&color=ffdd44&message=%23ffdd44)
|
||||
- ![class](https://img.shields.io/static/v1?style=flat-square&label=class&color=88ffff&message=%2388ffff)
|
||||
- ![class-declaration](https://img.shields.io/static/v1?style=flat-square&label=class-declaration&color=00ffff&message=%2300ffff)
|
||||
- ![interface](https://img.shields.io/static/v1?style=flat-square&label=interface&color=88ff88&message=%2388ff88)
|
||||
- ![interface-declaration](https://img.shields.io/static/v1?style=flat-square&label=interface-declaration&color=00ff00&message=%2300ff00)
|
||||
- ![type](https://img.shields.io/static/v1?style=flat-square&label=type&color=80ffd4&message=%2380ffd4)
|
||||
- ![type-declaration](https://img.shields.io/static/v1?style=flat-square&label=type-declaration&color=00ffaa&message=%2300ffaa)
|
||||
- ![function](https://img.shields.io/static/v1?style=flat-square&label=function&color=e6e68a&message=%23e6e68a)
|
||||
- ![function-declaration](https://img.shields.io/static/v1?style=flat-square&label=function-declaration&color=ffff00&message=%23ffff00)
|
||||
- ![enum](https://img.shields.io/static/v1?style=flat-square&label=enum&color=e8bfff&message=%23e8bfff)
|
||||
- ![enum-declaration](https://img.shields.io/static/v1?style=flat-square&label=enum-declaration&color=ca6fff&message=%23ca6fff)
|
||||
- ![variable](https://img.shields.io/static/v1?style=flat-square&label=variable&color=dcaf88&message=%23dcaf88)
|
||||
- ![special](https://img.shields.io/static/v1?style=flat-square&label=special&color=db88db&message=%23db88db)
|
||||
- ![literal](https://img.shields.io/static/v1?style=flat-square&label=literal&color=6897bb&message=%236897bb)
|
||||
- ![string](https://img.shields.io/static/v1?style=flat-square&label=string&color=438c5c&message=%23438c5c)
|
||||
- ![bytes](https://img.shields.io/static/v1?style=flat-square&label=bytes&color=a7c261&message=%23a7c261)
|
||||
- ![docstring](https://img.shields.io/static/v1?style=flat-square&label=docstring&color=629755&message=%23629755)
|
||||
- ![docstring-keyword](https://img.shields.io/static/v1?style=flat-square&label=docstring-keyword&color=629755&message=%23629755)
|
||||
- ![docstring-variable](https://img.shields.io/static/v1?style=flat-square&label=docstring-variable&color=8a653b&message=%238a653b)
|
||||
- ![escape](https://img.shields.io/static/v1?style=flat-square&label=escape&color=a5c261&message=%23a5c261)
|
||||
- ![format-contents](https://img.shields.io/static/v1?style=flat-square&label=format-contents&color=86ffff&message=%2386ffff)
|
||||
- ![format-options](https://img.shields.io/static/v1?style=flat-square&label=format-options&color=597aff&message=%23597aff)
|
||||
- ![format-variables](https://img.shields.io/static/v1?style=flat-square&label=format-variables&color=8fa5ff&message=%238fa5ff)
|
||||
- ![key](https://img.shields.io/static/v1?style=flat-square&label=key&color=ff6736&message=%23ff6736)
|
||||
- ![meta](https://img.shields.io/static/v1?style=flat-square&label=meta&color=bbb529&message=%23bbb529)
|
||||
- ![heading](https://img.shields.io/static/v1?style=flat-square&label=heading&color=99ffff&message=%2399ffff)
|
||||
- ![bold](https://img.shields.io/static/v1?style=flat-square&label=bold&color=ffbc82&message=%23ffbc82)
|
||||
- ![italic](https://img.shields.io/static/v1?style=flat-square&label=italic&color=ffbc82&message=%23ffbc82)
|
||||
- ![underline](https://img.shields.io/static/v1?style=flat-square&label=underline&color=ffbc82&message=%23ffbc82)
|
||||
- ![link](https://img.shields.io/static/v1?style=flat-square&label=link&color=00d0ff&message=%2300d0ff)
|
||||
- ![url](https://img.shields.io/static/v1?style=flat-square&label=url&color=2a7ede&message=%232a7ede)
|
||||
- ![code](https://img.shields.io/static/v1?style=flat-square&label=code&color=808080&message=%23808080)
|
||||
- ![code-language](https://img.shields.io/static/v1?style=flat-square&label=code-language&color=bbb529&message=%23bbb529)
|
||||
- ![quote](https://img.shields.io/static/v1?style=flat-square&label=quote&color=639656&message=%23639656)
|
||||
- ![insert](https://img.shields.io/static/v1?style=flat-square&label=insert&color=99ff99&message=%2399ff99)
|
||||
- ![insert-header](https://img.shields.io/static/v1?style=flat-square&label=insert-header&color=44ff44&message=%2344ff44)
|
||||
- ![delete](https://img.shields.io/static/v1?style=flat-square&label=delete&color=ff9999&message=%23ff9999)
|
||||
- ![delete-header](https://img.shields.io/static/v1?style=flat-square&label=delete-header&color=ff4444&message=%23ff4444)
|
||||
- ![log-error](https://img.shields.io/static/v1?style=flat-square&label=log-error&color=ffa6a6&message=%23ffa6a6)
|
||||
- ![log-warning](https://img.shields.io/static/v1?style=flat-square&label=log-warning&color=ffffa6&message=%23ffffa6)
|
||||
- ![log-info](https://img.shields.io/static/v1?style=flat-square&label=log-info&color=99eeff&message=%2399eeff)
|
||||
- ![log-verbose](https://img.shields.io/static/v1?style=flat-square&label=log-verbose&color=a8a8ff&message=%23a8a8ff)
|
||||
- ![log-debug](https://img.shields.io/static/v1?style=flat-square&label=log-debug&color=ca77ff&message=%23ca77ff)
|
||||
- ![log-context](https://img.shields.io/static/v1?style=flat-square&label=log-context&color=8a653b&message=%238a653b)
|
||||
- ![section-title](https://img.shields.io/static/v1?style=flat-square&label=section-title&color=ff9340&message=%23ff9340)
|
||||
- ![selector-tag](https://img.shields.io/static/v1?style=flat-square&label=selector-tag&color=00ff32&message=%2300ff32)
|
||||
- ![selector-attribute](https://img.shields.io/static/v1?style=flat-square&label=selector-attribute&color=ff9340&message=%23ff9340)
|
||||
- ![selector-class](https://img.shields.io/static/v1?style=flat-square&label=selector-class&color=fcff00&message=%23fcff00)
|
||||
- ![selector-id](https://img.shields.io/static/v1?style=flat-square&label=selector-id&color=00ffff&message=%2300ffff)
|
||||
- ![selector-pseudoclass](https://img.shields.io/static/v1?style=flat-square&label=selector-pseudoclass&color=ca77ff&message=%23ca77ff)
|
||||
- ![selector-pseudoelement](https://img.shields.io/static/v1?style=flat-square&label=selector-pseudoelement&color=ff00ff&message=%23ff00ff)
|
||||
- ![selector-parent](https://img.shields.io/static/v1?style=flat-square&label=selector-parent&color=00ffaa&message=%2300ffaa)
|
||||
- ![db-relationship](https://img.shields.io/static/v1?style=flat-square&label=db-relationship&color=00ffaa&message=%2300ffaa)
|
||||
- ![invalid](https://img.shields.io/static/v1?style=flat-square&label=invalid&color=ff5252&message=%23ff5252)
|
||||
|
|
Loading…
Reference in a new issue