New Crowdin updates (#7616)
* New translations troubleshooting.md (Indonesian)
* New translations troubleshooting.md (Chinese Traditional)
* New translations troubleshooting.md (German)
* New translations troubleshooting.md (Chinese Simplified)
* New translations troubleshooting.md (Ukrainian)
* New translations troubleshooting.md (Russian)
* New translations troubleshooting.md (Portuguese)
* New translations troubleshooting.md (Polish)
* New translations troubleshooting.md (Norwegian)
* New translations troubleshooting.md (Dutch)
* New translations troubleshooting.md (Korean)
* New translations troubleshooting.md (Italian)
* New translations report-issue.md (Korean)
* New translations report-issue.md (German)
* New translations links.md (Portuguese)
* New translations links.md (Kannada)
* New translations misskey.md (German)
* New translations misskey.md (Danish)
* New translations misskey.md (Czech)
* New translations misskey.md (Arabic)
* New translations misskey.md (Spanish)
* New translations misskey.md (French)
* New translations links.md (Japanese, Kansai)
* New translations links.md (Kabyle)
* New translations links.md (Haitian Creole)
* New translations links.md (Lojban)
* New translations misskey.md (Korean)
* New translations links.md (Uyghur)
* New translations links.md (Esperanto)
* New translations links.md (Thai)
* New translations links.md (Indonesian)
* New translations links.md (English)
* New translations links.md (Chinese Traditional)
* New translations links.md (Chinese Simplified)
* New translations links.md (Ukrainian)
* New translations links.md (Russian)
* New translations misskey.md (Italian)
* New translations misskey.md (Dutch)
* New translations report-issue.md (Danish)
* New translations misskey.md (Uyghur)
* New translations report-issue.md (Czech)
* New translations report-issue.md (Arabic)
* New translations report-issue.md (Spanish)
* New translations report-issue.md (French)
* New translations misskey.md (Japanese, Kansai)
* New translations misskey.md (Kabyle)
* New translations misskey.md (Haitian Creole)
* New translations misskey.md (Kannada)
* New translations misskey.md (Lojban)
* New translations misskey.md (Esperanto)
* New translations misskey.md (Norwegian)
* New translations misskey.md (Thai)
* New translations misskey.md (Indonesian)
* New translations misskey.md (English)
* New translations misskey.md (Chinese Traditional)
* New translations misskey.md (Chinese Simplified)
* New translations misskey.md (Ukrainian)
* New translations misskey.md (Russian)
* New translations misskey.md (Portuguese)
* New translations misskey.md (Polish)
* New translations widgets.md (Lojban)
* New translations reaction.md (Polish)
* New translations widgets.md (Esperanto)
* New translations pages.md (Esperanto)
* New translations reaction.md (Spanish)
* New translations reaction.md (French)
* New translations pages.md (Japanese, Kansai)
* New translations pages.md (Kabyle)
* New translations pages.md (Haitian Creole)
* New translations pages.md (Kannada)
* New translations pages.md (Lojban)
* New translations pages.md (Uyghur)
* New translations pages.md (Thai)
* New translations reaction.md (Czech)
* New translations pages.md (Indonesian)
* New translations pages.md (English)
* New translations pages.md (Chinese Traditional)
* New translations pages.md (Chinese Simplified)
* New translations pages.md (Ukrainian)
* New translations pages.md (Russian)
* New translations pages.md (Portuguese)
* New translations pages.md (Polish)
* New translations pages.md (Norwegian)
* New translations reaction.md (Arabic)
* New translations reaction.md (Danish)
* New translations pages.md (Korean)
* New translations reaction.md (Indonesian)
* New translations silence.md (French)
* New translations reaction.md (Japanese, Kansai)
* New translations reaction.md (Kabyle)
* New translations reaction.md (Haitian Creole)
* New translations reaction.md (Kannada)
* New translations reaction.md (Lojban)
* New translations reaction.md (Uyghur)
* New translations reaction.md (Esperanto)
* New translations reaction.md (Thai)
* New translations reaction.md (English)
* New translations reaction.md (German)
* New translations reaction.md (Chinese Traditional)
* New translations reaction.md (Chinese Simplified)
* New translations reaction.md (Ukrainian)
* New translations reaction.md (Russian)
* New translations reaction.md (Portuguese)
* New translations reaction.md (Norwegian)
* New translations reaction.md (Dutch)
* New translations reaction.md (Korean)
* New translations reaction.md (Italian)
* New translations pages.md (Dutch)
* New translations pages.md (Italian)
* New translations silence.md (Arabic)
* New translations mute.md (Kabyle)
* New translations note.md (Italian)
* New translations note.md (German)
* New translations note.md (Danish)
* New translations note.md (Czech)
* New translations note.md (Arabic)
* New translations note.md (Spanish)
* New translations note.md (French)
* New translations mute.md (Japanese, Kansai)
* New translations mute.md (Haitian Creole)
* New translations note.md (Dutch)
* New translations mute.md (Kannada)
* New translations mute.md (Lojban)
* New translations mute.md (Uyghur)
* New translations mute.md (Esperanto)
* New translations mute.md (Thai)
* New translations mute.md (Indonesian)
* New translations mute.md (English)
* New translations mute.md (Chinese Traditional)
* New translations mute.md (Chinese Simplified)
* New translations note.md (Korean)
* New translations note.md (Norwegian)
* New translations pages.md (German)
* New translations note.md (Lojban)
* New translations pages.md (Danish)
* New translations pages.md (Czech)
* New translations pages.md (Arabic)
* New translations pages.md (Spanish)
* New translations pages.md (French)
* New translations note.md (Japanese, Kansai)
* New translations note.md (Kabyle)
* New translations note.md (Haitian Creole)
* New translations note.md (Kannada)
* New translations note.md (Uyghur)
* New translations note.md (Polish)
* New translations note.md (Esperanto)
* New translations note.md (Thai)
* New translations note.md (Indonesian)
* New translations note.md (English)
* New translations note.md (Chinese Traditional)
* New translations note.md (Chinese Simplified)
* New translations note.md (Ukrainian)
* New translations note.md (Russian)
* New translations note.md (Portuguese)
* New translations silence.md (Spanish)
* New translations silence.md (Czech)
* New translations widgets.md (Thai)
* New translations timeline.md (Portuguese)
* New translations timeline.md (Esperanto)
* New translations timeline.md (Thai)
* New translations timeline.md (Indonesian)
* New translations timeline.md (English)
* New translations timeline.md (Chinese Traditional)
* New translations timeline.md (Chinese Simplified)
* New translations timeline.md (Ukrainian)
* New translations timeline.md (Russian)
* New translations timeline.md (Polish)
* New translations timeline.md (Lojban)
* New translations timeline.md (Norwegian)
* New translations timeline.md (Dutch)
* New translations timeline.md (Korean)
* New translations timeline.md (Italian)
* New translations timeline.md (German)
* New translations timeline.md (Danish)
* New translations timeline.md (Czech)
* New translations timeline.md (Arabic)
* New translations timeline.md (Spanish)
* New translations timeline.md (Uyghur)
* New translations timeline.md (Kannada)
* New translations theme.md (Japanese, Kansai)
* New translations widgets.md (Dutch)
* New translations widgets.md (Indonesian)
* New translations widgets.md (English)
* New translations widgets.md (Chinese Traditional)
* New translations widgets.md (Chinese Simplified)
* New translations widgets.md (Ukrainian)
* New translations widgets.md (Russian)
* New translations widgets.md (Portuguese)
* New translations widgets.md (Polish)
* New translations widgets.md (Norwegian)
* New translations widgets.md (Korean)
* New translations timeline.md (Haitian Creole)
* New translations widgets.md (Italian)
* New translations widgets.md (German)
* New translations widgets.md (Danish)
* New translations widgets.md (Czech)
* New translations widgets.md (Arabic)
* New translations widgets.md (Spanish)
* New translations widgets.md (French)
* New translations timeline.md (Japanese, Kansai)
* New translations timeline.md (Kabyle)
* New translations timeline.md (French)
* New translations theme.md (Kabyle)
* New translations silence.md (Danish)
* New translations silence.md (Chinese Traditional)
* New translations silence.md (Kabyle)
* New translations silence.md (Haitian Creole)
* New translations silence.md (Kannada)
* New translations silence.md (Lojban)
* New translations silence.md (Uyghur)
* New translations silence.md (Esperanto)
* New translations silence.md (Thai)
* New translations silence.md (Indonesian)
* New translations silence.md (English)
* New translations silence.md (Chinese Simplified)
* New translations theme.md (French)
* New translations silence.md (Ukrainian)
* New translations silence.md (Russian)
* New translations silence.md (Portuguese)
* New translations silence.md (Polish)
* New translations silence.md (Norwegian)
* New translations silence.md (Dutch)
* New translations silence.md (Korean)
* New translations silence.md (Italian)
* New translations silence.md (German)
* New translations silence.md (Japanese, Kansai)
* New translations theme.md (Spanish)
* New translations theme.md (Haitian Creole)
* New translations theme.md (Ukrainian)
* New translations theme.md (Kannada)
* New translations theme.md (Lojban)
* New translations theme.md (Uyghur)
* New translations theme.md (Esperanto)
* New translations theme.md (Thai)
* New translations theme.md (Indonesian)
* New translations theme.md (English)
* New translations theme.md (Chinese Traditional)
* New translations theme.md (Chinese Simplified)
* New translations theme.md (Russian)
* New translations theme.md (Arabic)
* New translations theme.md (Portuguese)
* New translations theme.md (Polish)
* New translations theme.md (Norwegian)
* New translations theme.md (Dutch)
* New translations theme.md (Korean)
* New translations theme.md (Italian)
* New translations theme.md (German)
* New translations theme.md (Danish)
* New translations theme.md (Czech)
* New translations troubleshooting.md (Japanese, Kansai)
2021-08-08 12:39:45 +00:00
|
|
|
# 테마
|
|
|
|
|
|
|
|
テーマを設定して、Misskeyクライアントの見た目を変更できます。
|
|
|
|
|
|
|
|
## テーマの設定
|
|
|
|
設定 > テーマ
|
|
|
|
|
|
|
|
## テーマを作成する
|
|
|
|
テーマコードはJSON5で記述されたテーマオブジェクトです。 テーマは以下のようなオブジェクトです。
|
|
|
|
``` js
|
|
|
|
{
|
|
|
|
id: '17587283-dd92-4a2c-a22c-be0637c9e22a',
|
|
|
|
|
|
|
|
name: 'Danboard',
|
|
|
|
author: 'syuilo',
|
|
|
|
|
|
|
|
base: 'light',
|
|
|
|
|
|
|
|
props: {
|
|
|
|
accent: 'rgb(218, 141, 49)',
|
|
|
|
bg: 'rgb(218, 212, 190)',
|
|
|
|
fg: 'rgb(115, 108, 92)',
|
|
|
|
panel: 'rgb(236, 232, 220)',
|
|
|
|
renote: 'rgb(100, 152, 106)',
|
|
|
|
link: 'rgb(100, 152, 106)',
|
|
|
|
mention: '@accent',
|
|
|
|
hashtag: 'rgb(100, 152, 106)',
|
|
|
|
header: 'rgba(239, 227, 213, 0.75)',
|
|
|
|
navBg: 'rgb(216, 206, 182)',
|
|
|
|
inputBorder: 'rgba(0, 0, 0, 0.1)',
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
* `id` ... テーマの一意なID。UUIDをおすすめします。
|
|
|
|
* `name` ... テーマ名
|
|
|
|
* `author` ... テーマの作者
|
|
|
|
* `desc` ... テーマの説明(オプション)
|
|
|
|
* `base` ... 明るいテーマか、暗いテーマか
|
|
|
|
* `light`にすると明るいテーマになり、`dark`にすると暗いテーマになります。
|
|
|
|
* テーマはここで設定されたベーステーマを継承します。
|
|
|
|
* `props` ... テーマのスタイル定義。これから説明します。
|
|
|
|
|
|
|
|
### テーマのスタイル定義
|
|
|
|
`props`下にはテーマのスタイルを定義します。 キーがCSSの変数名になり、バリューで中身を指定します。 なお、この`props`オブジェクトはベーステーマから継承されます。 ベーステーマは、このテーマの`base`が`light`なら[_light.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_dark.json5)です。 つまり、このテーマ内の`props`に`panel`というキーが無くても、そこにはベーステーマの`panel`があると見なされます。
|
|
|
|
|
|
|
|
#### バリューで使える構文
|
|
|
|
* 16進数で表された色
|
|
|
|
* 例: `#00ff00`
|
|
|
|
* `rgb(r, g, b)`形式で表された色
|
|
|
|
* 例: `rgb(0, 255, 0)`
|
|
|
|
* `rgb(r, g, b, a)`形式で表された透明度を含む色
|
|
|
|
* 例: `rgba(0, 255, 0, 0.5)`
|
|
|
|
* 他のキーの値の参照
|
|
|
|
* `@{キー名}`と書くと他のキーの値の参照になります。`{キー名}`は参照したいキーの名前に置き換えます。
|
|
|
|
* 例: `@panel`
|
|
|
|
* 定数(後述)の参照
|
|
|
|
* `${定数名}`と書くと定数の参照になります。`{定数名}`は参照したい定数の名前に置き換えます。
|
|
|
|
* 例: `$main`
|
|
|
|
* 関数(後述)
|
|
|
|
* `:{関数名}<{引数}<{色}`
|
|
|
|
|
|
|
|
#### 상수
|
|
|
|
「CSS変数として出力はしたくないが、他のCSS変数の値として使いまわしたい」値があるときは、定数を使うと便利です。 キー名を`$`で始めると、そのキーはCSS変数として出力されません。
|
|
|
|
|
|
|
|
#### 함수
|
|
|
|
wip
|