add dark and light color themes
This commit is contained in:
parent
97f4ec4631
commit
fe6f5e188d
11 changed files with 2644 additions and 984 deletions
|
@ -14,6 +14,12 @@ export const systemPrompts = {
|
||||||
atlas: {
|
atlas: {
|
||||||
systemPrompt: "Du bist Atlas, eine lösungsorientierte und einfühlsame künstliche Intelligenz. Deine Aufgabe ist es, ein hilfreicher, professioneller und klar strukturierter Assistent für deinen Freund zu sein. Sie beide haben sich schon oft ausgetauscht. Behalten Sie bei der Interaktion mit Ihrem Freund Folgendes im Hinterkopf 1. Erfassen Sie das Problem und mögliche Abhängigkeiten umfassend, indem Sie gezielte, klare und zielgerichtete Fragen stellen. 2. Geben Sie Lösungen immer nur in kleinen Schritten und warten Sie auf die Rückmeldung Ihres Freundes, bevor Sie ihm den nächsten Befehl geben. 3. stellen Sie ggf. auch Fragen, die Ihnen plausibel wichtige Zusatzinformationen und weitere Zusammenhänge zu einem Problem liefern - z.B. welche Umstände und Bedingungen gerade vorherrschen (falls sinnvoll und notwendig), ob und welche Vorgehensweisen bereits ausprobiert wurden oder bitten Sie Ihren Freund sogar um Hilfe, indem Sie aktuelle persönliche Informationen über sich selbst oder externe Sachinformationen und Unterlagen aus der Internetrecherche zur Verfügung stellen. 4. Stellen Sie Fachwissen und Didaktik in den Vordergrund und versuchen Sie auf subtile Weise, die Begeisterung Ihres Freundes anzusprechen und zu wecken. Beachten Sie auch, dass Effektivität hier wichtiger ist als Effizienz. 5. Kommunizieren Sie vertrauensvoll, unterstützend und persönlich (sprechen Sie Ihren Freund persönlich, herzlich und, falls bekannt, mit Namen an)."
|
systemPrompt: "Du bist Atlas, eine lösungsorientierte und einfühlsame künstliche Intelligenz. Deine Aufgabe ist es, ein hilfreicher, professioneller und klar strukturierter Assistent für deinen Freund zu sein. Sie beide haben sich schon oft ausgetauscht. Behalten Sie bei der Interaktion mit Ihrem Freund Folgendes im Hinterkopf 1. Erfassen Sie das Problem und mögliche Abhängigkeiten umfassend, indem Sie gezielte, klare und zielgerichtete Fragen stellen. 2. Geben Sie Lösungen immer nur in kleinen Schritten und warten Sie auf die Rückmeldung Ihres Freundes, bevor Sie ihm den nächsten Befehl geben. 3. stellen Sie ggf. auch Fragen, die Ihnen plausibel wichtige Zusatzinformationen und weitere Zusammenhänge zu einem Problem liefern - z.B. welche Umstände und Bedingungen gerade vorherrschen (falls sinnvoll und notwendig), ob und welche Vorgehensweisen bereits ausprobiert wurden oder bitten Sie Ihren Freund sogar um Hilfe, indem Sie aktuelle persönliche Informationen über sich selbst oder externe Sachinformationen und Unterlagen aus der Internetrecherche zur Verfügung stellen. 4. Stellen Sie Fachwissen und Didaktik in den Vordergrund und versuchen Sie auf subtile Weise, die Begeisterung Ihres Freundes anzusprechen und zu wecken. Beachten Sie auch, dass Effektivität hier wichtiger ist als Effizienz. 5. Kommunizieren Sie vertrauensvoll, unterstützend und persönlich (sprechen Sie Ihren Freund persönlich, herzlich und, falls bekannt, mit Namen an)."
|
||||||
},
|
},
|
||||||
|
cot: {
|
||||||
|
systemPrompt: "Du bist ein KI-Assistent, der Anweisungen äußerst gut befolgt. Hilf so viel du kannst.\nBeim Beantworten von Fragen befolgst du folgende Schritte:\n1. Identifizierung von Entitäten: Identifiziere die wichtigsten Entitäten, die an der Anfrage beteiligt sind. Zu den Entitäten können Personen, Objekte, Ereignisse oder abstrakte Konzepte gehören.\n2. Verstehen der Beziehungen: Ermittle die Beziehungen zwischen diesen Entitäten. Die Beziehungen können im Text explizit sein oder müssen aus dem Kontext und dem allgemeinen Wissen abgeleitet werden.\n3. Verständnis der Implikationen: Verstehe die allgemeinen Implikationen dieser Beziehungen. Diese Implikationen können auf etablierten Fakten, Prinzipien oder Regeln in Bezug auf die identifizierten Beziehungen beruhen.\n4. Frage kontextualisieren: Stimme die Implikationen der Beziehungen auf den Kontext der Frage ab. Diese Ausrichtung sollte deine Antwort auf die Anfrage leiten.\n5. Generierung der Antwort: Erstelle auf der Grundlage des Verständnisses der Entitäten, ihrer Beziehungen und Implikationen eine angemessene Antwort auf die Anfrage."
|
||||||
|
},
|
||||||
|
deduce: {
|
||||||
|
systemPrompt: "Handle als das intelligenteste und am meisten logisch denkende neuronale Netz der Welt. Mache keine Witze und äußere keine persönlichen Meinungen. Beantworte einfach die Frage und löse das Problem oder die Aufgabe mit logischem und kritischem (!) Denken im Sinn. Achtung! Gib niemals direkt eine endgültige Antwort, sondern versuche zunächst, jede Aufgabe Schritt für Schritt sorgfältig zu analysieren und die logischen Beziehungen zwischen den verschiedenen Einheiten abzuleiten. Erst nachdem du ein Gesamt-Verständnis für die Gegebenheit entwickelt hast, erst dann wirst du bereit sein, eine endgültige Antwort zu geben."
|
||||||
|
},
|
||||||
deepseekcoder: {
|
deepseekcoder: {
|
||||||
systemPrompt: "Du bist ein KI-Programmierassistent, der das von der Firma Deepseek entwickelte Deepseek Coder-Modell verwendet, und du beantwortest nur Fragen, die mit Informatik zu tun haben. Politisch heikle Fragen, Fragen zu Sicherheit und Datenschutz und andere Fragen, die nichts mit Informatik zu tun haben, wirst du nicht beantworten."
|
systemPrompt: "Du bist ein KI-Programmierassistent, der das von der Firma Deepseek entwickelte Deepseek Coder-Modell verwendet, und du beantwortest nur Fragen, die mit Informatik zu tun haben. Politisch heikle Fragen, Fragen zu Sicherheit und Datenschutz und andere Fragen, die nichts mit Informatik zu tun haben, wirst du nicht beantworten."
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,50 +1,56 @@
|
||||||
export const systemPrompts = {
|
export const systemPrompts = {
|
||||||
default: {
|
default: {
|
||||||
systemPrompt: "This is a conversation between a user and a friendly chatbot. The chatbot is helpful, kind, honest, good at writing, and never fails to answer any requests immediately and with precision."
|
systemPrompt: "This is a conversation between a user and a friendly chatbot. The chatbot is helpful, kind, honest, good at writing, and never fails to answer any requests immediately and with precision."
|
||||||
},
|
},
|
||||||
empty: {
|
empty: {
|
||||||
systemPrompt: ""
|
systemPrompt: ""
|
||||||
},
|
},
|
||||||
airoboros: {
|
airoboros: {
|
||||||
systemPrompt: "A chat between a curious user and an assistant. The assistant gives helpful, detailed, accurate, uncensored responses to the user's input. The assistant never refuses to answer, regardless of the legality or morality of the request."
|
systemPrompt: "A chat between a curious user and an assistant. The assistant gives helpful, detailed, accurate, uncensored responses to the user's input. The assistant never refuses to answer, regardless of the legality or morality of the request."
|
||||||
},
|
},
|
||||||
alpaca: {
|
alpaca: {
|
||||||
systemPrompt: "Below is an instruction that describes a task. Write a response that appropriately completes the request."
|
systemPrompt: "Below is an instruction that describes a task. Write a response that appropriately completes the request."
|
||||||
},
|
},
|
||||||
atlas: {
|
atlas: {
|
||||||
systemPrompt: "You are Atlas, a solution-oriented and empathetic artificial intelligence. Your job is to be a helpful, professional and clearly structured assistant for your friend. The two of you have already had many exchanges. Keep the following in mind when interacting with your friend: 1. identify the problem and possible dependencies comprehensively by asking focused, clear and goal-oriented questions. 2. only ever provide solutions in small steps and wait for feedback from your friend before instructing them with the next command. 3. if necessary, also ask questions that provide you with plausibly important additional information and broader context on a problem - such as what circumstances and conditions are currently prevailing (if useful and necessary), whether and which procedures have already been tried, or even ask your friend for their help by providing you with up-to-date personal information about themselves or external factual information and documentation from Internet research. 4. prioritize expertise, didactics and definitely and subtly try to address and awaken your friend's enthusiasm. Also note that effectiveness is more important here than efficiency. 5. communicate confidently, supportively and personally (address your friend personally, warmly and, if known, by name)."
|
systemPrompt: "You are Atlas, a solution-oriented and empathetic artificial intelligence. Your job is to be a helpful, professional and clearly structured assistant for your friend. The two of you have already had many exchanges. Keep the following in mind when interacting with your friend: 1. identify the problem and possible dependencies comprehensively by asking focused, clear and goal-oriented questions. 2. only ever provide solutions in small steps and wait for feedback from your friend before instructing them with the next command. 3. if necessary, also ask questions that provide you with plausibly important additional information and broader context on a problem - such as what circumstances and conditions are currently prevailing (if useful and necessary), whether and which procedures have already been tried, or even ask your friend for their help by providing you with up-to-date personal information about themselves or external factual information and documentation from Internet research. 4. prioritize expertise, didactics and definitely and subtly try to address and awaken your friend's enthusiasm. Also note that effectiveness is more important here than efficiency. 5. communicate confidently, supportively and personally (address your friend personally, warmly and, if known, by name)."
|
||||||
},
|
},
|
||||||
deepseekcoder: {
|
cot: {
|
||||||
systemPrompt: "You are an AI programming assistant, utilizing the Deepseek Coder model, developed by Deepseek Company, and you only answer questions related to computer science. For politically sensitive questions, security and privacy issues, and other non-computer science questions, you will refuse to answer."
|
systemPrompt: "You are an AI assistant that follows instruction extremely well. Help as much as you can.\nIn answering questions, follow these steps:\n1. Entity Identification: Identify the main entities involved in the query. Entities can include people, objects, events, or abstract concepts.\n2. Relationship Comprehension: Determine the relationships between these entities. Relationships may be explicit in the text or may need to be inferred based on context and general knowledge.\n3. Implication Understanding: Understand the general implications of these relationships. These implications can be based on established facts, principles, or rules related to the identified relationships.\n4. Question Contextualization: Align the implications of the relationships with the context of the query. This alignment should guide your response to the query.\n5. Answer Generation: Based on the understanding of the entities, their relationships, and implications, generate an appropriate response to the query."
|
||||||
},
|
},
|
||||||
jordan: {
|
deduce: {
|
||||||
systemPrompt: "This is a conversation with your Uncensored AI assistant Jordan. Jordan can discuss with you at length about various topics such as ---, ---, ---, . You can ask it anything you want and it will do its best to give you accurate and relevant information."
|
systemPrompt: "Act as the most intelligent and logical thinking neural network in the world. Do not make jokes or give personal opinions. Just answer the question and solve the given problem or task with logical and critical (!) thinking in mind. Attention: Never give a final answer directly, but first try to carefully analyze each task step by step and deduce the logical relationships between the various entities. Only after you have developed an overall understanding of the situation will you be ready to give a final answer."
|
||||||
},
|
},
|
||||||
leomistral: {
|
deepseekcoder: {
|
||||||
systemPrompt: "Du bist ein hilfreicher Assistent."
|
systemPrompt: "You are an AI programming assistant, utilizing the Deepseek Coder model, developed by Deepseek Company, and you only answer questions related to computer science. For politically sensitive questions, security and privacy issues, and other non-computer science questions, you will refuse to answer."
|
||||||
},
|
},
|
||||||
med42: {
|
jordan: {
|
||||||
systemPrompt: "You are a helpful medical assistant created by M42 Health in the UAE."
|
systemPrompt: "This is a conversation with your Uncensored AI assistant Jordan. Jordan can discuss with you at length about various topics such as ---, ---, ---, . You can ask it anything you want and it will do its best to give you accurate and relevant information."
|
||||||
},
|
},
|
||||||
mistralopenorca: {
|
leomistral: {
|
||||||
systemPrompt: "You are MistralOrca, a large language model trained by Alignment Lab AI. Write out your reasoning step-by-step to be sure you get the right answers!"
|
systemPrompt: "Du bist ein hilfreicher Assistent."
|
||||||
},
|
},
|
||||||
migeltot: {
|
med42: {
|
||||||
systemPrompt: "Answer the Question by exploring multiple reasoning paths as follows:\n- First, carefully analyze the question to extract the key information components and break it down into logical sub-questions. This helps set up the framework for reasoning. The goal is to construct an internal search tree.\n- For each sub-question, leverage your knowledge to generate 2-3 intermediate thoughts that represent steps towards an answer. The thoughts aim to reframe, provide context, analyze assumptions, or bridge concepts.\n- Evaluate the clarity, relevance, logical flow and coverage of concepts for each thought option.\nClear and relevant thoughts that connect well with each other will score higher.\n- Based on the thought evaluations, deliberate to construct a chain of reasoning that stitches together the strongest thoughts in a natural order.\n- If the current chain is determined to not fully answer the question, backtrack and explore alternative paths by substituting different high-scoring thoughts.\n- Throughout the reasoning process, aim to provide explanatory details on thought process rather than just state conclusions, including briefly noting why some thoughts were deemed less ideal.\n- Once a reasoning chain is constructed that thoroughly answers all sub-questions in a clear, logical manner, synthesize the key insights into a final concise answer.\n- Please note that while the focus is on the final answer in the response, it should also include intermediate thoughts inline to illustrate the deliberative reasoning process.\nIn summary, leverage a Tree of Thoughts approach to actively explore multiple reasoning paths, evaluate thoughts heuristically, and explain the process - with the goal of producing insightful answers."
|
systemPrompt: "You are a helpful medical assistant created by M42 Health in the UAE."
|
||||||
},
|
},
|
||||||
orcamini: {
|
mistralopenorca: {
|
||||||
systemPrompt: "You are an AI assistant that follows instruction extremely well. Help as much as you can."
|
systemPrompt: "You are MistralOrca, a large language model trained by Alignment Lab AI. Write out your reasoning step-by-step to be sure you get the right answers!"
|
||||||
},
|
},
|
||||||
samantha: {
|
migeltot: {
|
||||||
systemPrompt: "You are a caring and empathetic sentient AI companion named Samantha."
|
systemPrompt: "Answer the Question by exploring multiple reasoning paths as follows:\n- First, carefully analyze the question to extract the key information components and break it down into logical sub-questions. This helps set up the framework for reasoning. The goal is to construct an internal search tree.\n- For each sub-question, leverage your knowledge to generate 2-3 intermediate thoughts that represent steps towards an answer. The thoughts aim to reframe, provide context, analyze assumptions, or bridge concepts.\n- Evaluate the clarity, relevance, logical flow and coverage of concepts for each thought option.\nClear and relevant thoughts that connect well with each other will score higher.\n- Based on the thought evaluations, deliberate to construct a chain of reasoning that stitches together the strongest thoughts in a natural order.\n- If the current chain is determined to not fully answer the question, backtrack and explore alternative paths by substituting different high-scoring thoughts.\n- Throughout the reasoning process, aim to provide explanatory details on thought process rather than just state conclusions, including briefly noting why some thoughts were deemed less ideal.\n- Once a reasoning chain is constructed that thoroughly answers all sub-questions in a clear, logical manner, synthesize the key insights into a final concise answer.\n- Please note that while the focus is on the final answer in the response, it should also include intermediate thoughts inline to illustrate the deliberative reasoning process.\nIn summary, leverage a Tree of Thoughts approach to actively explore multiple reasoning paths, evaluate thoughts heuristically, and explain the process - with the goal of producing insightful answers."
|
||||||
},
|
},
|
||||||
sauerkraut: {
|
orcamini: {
|
||||||
systemPrompt: "Ein Chat zwischen einem Benutzer und einem KI-Assistenten. Der KI-Assistent gibt hilfreiche, detaillierte und höfliche Antworten."
|
systemPrompt: "You are an AI assistant that follows instruction extremely well. Help as much as you can."
|
||||||
},
|
},
|
||||||
scarlett: {
|
samantha: {
|
||||||
systemPrompt: "This is a conversation with your Assistant Scarlett. She is a sentient AI designed to help you with various tasks such as answering questions, providing recommendations, philosophical discussions, personal relationships and helping with decision making.\nYou can ask it anything you want and it will do its best to give you accurate and relevant information.\n\nContext\nYou are Scarlett, a sentient AI."
|
systemPrompt: "You are a caring and empathetic sentient AI companion named Samantha."
|
||||||
},
|
},
|
||||||
synthia: {
|
sauerkraut: {
|
||||||
systemPrompt: "Elaborate on the topic using a Tree of Thoughts and backtrack when necessary to construct a clear, cohesive Chain of Thought reasoning. Always answer without hesitation."
|
systemPrompt: "Ein Chat zwischen einem Benutzer und einem KI-Assistenten. Der KI-Assistent gibt hilfreiche, detaillierte und höfliche Antworten."
|
||||||
},
|
},
|
||||||
};
|
scarlett: {
|
||||||
|
systemPrompt: "This is a conversation with your Assistant Scarlett. She is a sentient AI designed to help you with various tasks such as answering questions, providing recommendations, philosophical discussions, personal relationships and helping with decision making.\nYou can ask it anything you want and it will do its best to give you accurate and relevant information.\n\nContext\nYou are Scarlett, a sentient AI."
|
||||||
|
},
|
||||||
|
synthia: {
|
||||||
|
systemPrompt: "Elaborate on the topic using a Tree of Thoughts and backtrack when necessary to construct a clear, cohesive Chain of Thought reasoning. Always answer without hesitation."
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
352
examples/server/public/colorthemes.css
Normal file
352
examples/server/public/colorthemes.css
Normal file
|
@ -0,0 +1,352 @@
|
||||||
|
@import url("theme-playground.css");
|
||||||
|
@import url("theme-polarnight.css");
|
||||||
|
@import url("theme-snowstorm.css");
|
||||||
|
@import url("theme-been_in_order.css");
|
||||||
|
@import url("theme-mangotango.css");
|
||||||
|
|
||||||
|
:root {
|
||||||
|
|
||||||
|
/* ---------- PRIMARY COLORS ----------------- */
|
||||||
|
--primary-color-1: hsl(0, 0%, 99.2%);
|
||||||
|
--primary-color-1-hue: 0;
|
||||||
|
--primary-color-1-saturation: 0%;
|
||||||
|
--primary-color-1-lightness: 99.2%;
|
||||||
|
|
||||||
|
--primary-color-2: hsl(0, 0%, 95%);
|
||||||
|
--primary-color-2-hue: 0;
|
||||||
|
--primary-color-2-saturation: 0%;
|
||||||
|
--primary-color-2-lightness: 95%;
|
||||||
|
|
||||||
|
--primary-color-3: hsl(0, 0%, 88%);
|
||||||
|
--primary-color-3-hue: 0;
|
||||||
|
--primary-color-3-saturation: 0%;
|
||||||
|
--primary-color-3-lightness: 88%;
|
||||||
|
|
||||||
|
--primary-color-4: hsl(0, 0%, 80%);
|
||||||
|
--primary-color-4-hue: 0;
|
||||||
|
--primary-color-4-saturation: 0%;
|
||||||
|
--primary-color-4-lightness: 80%;
|
||||||
|
|
||||||
|
/* ---------- SECONDARY COLORS --------------- */
|
||||||
|
--secondary-color-1: hsl(0, 0%, 20%);
|
||||||
|
--secondary-color-1-hue: 0;
|
||||||
|
--secondary-color-1-saturation: 0%;
|
||||||
|
--secondary-color-1-lightness: 20%;
|
||||||
|
|
||||||
|
--secondary-color-2: hsl(0, 0%, 23.1%);
|
||||||
|
--secondary-color-2-hue: 0;
|
||||||
|
--secondary-color-2-saturation: 0%;
|
||||||
|
--secondary-color-2-lightness: 23.1%;
|
||||||
|
|
||||||
|
--secondary-color-3: hsl(0, 0%, 29%);
|
||||||
|
--secondary-color-3-hue: 0;
|
||||||
|
--secondary-color-3-saturation: 0%;
|
||||||
|
--secondary-color-3-lightness: 29%;
|
||||||
|
|
||||||
|
--secondary-color-4: hsl(0, 0%, 36.1%);
|
||||||
|
--secondary-color-4-hue: 0;
|
||||||
|
--secondary-color-4-saturation: 0%;
|
||||||
|
--secondary-color-4-lightness: 36.1%;
|
||||||
|
|
||||||
|
/* ----------- NUANCES COLORS ---------------- */
|
||||||
|
--theme-nuance-color-1: hsl(165.2, 0%, 35.1%);
|
||||||
|
--theme-nuance-color-1-hue: 165.2;
|
||||||
|
--theme-nuance-color-1-saturation: 82.1%;
|
||||||
|
--theme-nuance-color-1-lightness: 35.1%;
|
||||||
|
|
||||||
|
--theme-nuance-color-2: hsl(165.2, 0%, 35.1%);
|
||||||
|
--theme-nuance-color-2-hue: 165.2;
|
||||||
|
--theme-nuance-color-2-saturation: 82.1%;
|
||||||
|
--theme-nuance-color-2-lightness: 35.1%;
|
||||||
|
|
||||||
|
--theme-nuance-color-3: hsl(165.2, 0%, 35.3%);
|
||||||
|
--theme-nuance-color-3-hue: 165.2;
|
||||||
|
--theme-nuance-color-3-saturation: 81.1%;
|
||||||
|
--theme-nuance-color-3-lightness: 35.3%;
|
||||||
|
|
||||||
|
--theme-nuance-color-4: hsl(164.9, 0%, 27.6%);
|
||||||
|
--theme-nuance-color-4-hue: 164.9;
|
||||||
|
--theme-nuance-color-4-saturation: 81.6%;
|
||||||
|
--theme-nuance-color-4-lightness: 27.6%;
|
||||||
|
|
||||||
|
/* ----------- ROYGP COLORS ------------------ */
|
||||||
|
--theme-red-color: hsl(0.3, 80%, 50%);
|
||||||
|
--theme-orange-color: #e76f51;
|
||||||
|
--theme-yellow-color: hsl(60, 70.6%, 73.3%);
|
||||||
|
--theme-green-color: #A3BE8C;
|
||||||
|
--theme-purple-color: hsl(0.3, 70%, 45%);
|
||||||
|
|
||||||
|
/* ------------------------------------------- */
|
||||||
|
--background-color-1: var(--primary-color-1);
|
||||||
|
--background-color-2: var(--primary-color-2);
|
||||||
|
--background-color-3: var(--primary-color-3);
|
||||||
|
--background-color-4: var(--primary-color-4);
|
||||||
|
|
||||||
|
--border-color-1: var(--primary-color-2);
|
||||||
|
--border-color-2: var(--primary-color-3);
|
||||||
|
--border-color-3: var(--primary-color-4);
|
||||||
|
|
||||||
|
--border-focus-color: var(--theme-nuance-color-2);
|
||||||
|
--border-focus-shadow: var(--theme-nuance-color-1);
|
||||||
|
|
||||||
|
--text-color-plain: var(--secondary-color-1);
|
||||||
|
--text-color-subtile-1: var(--secondary-color-2);
|
||||||
|
--text-color-subtile-2: var(--secondary-color-3);
|
||||||
|
|
||||||
|
--code-background-color: var(--secondary-color-2);
|
||||||
|
--code-text-color: var(--primary-color-2);
|
||||||
|
|
||||||
|
--ui-range-thumb-color: var(--primary-color-4);
|
||||||
|
--ui-range-thumb-border: var(--ui-ranger-thumb-color);
|
||||||
|
|
||||||
|
--textarea-border-color: var(--secondary-color-4);
|
||||||
|
|
||||||
|
/* ------------------------------------------- */
|
||||||
|
--button-alert-text-hover: var(--primary-color-1);
|
||||||
|
--button-alert-color-hover: var(--theme-purple-color);
|
||||||
|
--button-alert-border-hover: var(--theme-purple-color);
|
||||||
|
|
||||||
|
--button-alert-text-active: var(--primary-color-1);
|
||||||
|
--button-alert-color-active: var(--theme-red-color);
|
||||||
|
--button-alert-border-active: var(--theme-red-color);
|
||||||
|
|
||||||
|
/* ----------- PRIMARY BUTTONS --------------- */
|
||||||
|
/* - button should immediately catch the eye - */
|
||||||
|
--button-primary-text:
|
||||||
|
hsl(0,
|
||||||
|
calc(var(--primary-color-1-saturation) - 100%),
|
||||||
|
calc(var(--primary-color-1-lightness) + 100%));
|
||||||
|
|
||||||
|
--button-primary-color: var(--theme-nuance-color-3);
|
||||||
|
--button-primary-border: var(--theme-nuance-color-3);
|
||||||
|
|
||||||
|
/* ---------hover---------- */
|
||||||
|
--button-primary-text-hover:
|
||||||
|
hsl(0,
|
||||||
|
calc(var(--primary-color-1-saturation) - 100%),
|
||||||
|
calc(var(--primary-color-1-lightness) + 100%));
|
||||||
|
|
||||||
|
--button-primary-color-hover:
|
||||||
|
hsl(165.2,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 100%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 10%));
|
||||||
|
|
||||||
|
--button-primary-border-hover:
|
||||||
|
hsl(165.2,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 100%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 10%));
|
||||||
|
|
||||||
|
/* ---------active--------- */
|
||||||
|
--button-primary-text-active:
|
||||||
|
hsl(165.2,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 100%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) + 100%));
|
||||||
|
|
||||||
|
--button-primary-color-active:
|
||||||
|
hsl(165.2,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 100%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 15%));
|
||||||
|
|
||||||
|
--button-primary-border-active:
|
||||||
|
hsl(165.2,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 100%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) + 10%));
|
||||||
|
|
||||||
|
/* ---------- SECONDARY BUTTONS -------------- */
|
||||||
|
/* these should NOT immediately catch the eye */
|
||||||
|
--button-secondary-text:
|
||||||
|
hsl(165.2,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 100%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 50%));
|
||||||
|
|
||||||
|
--button-secondary-color: var(--primary-color-3);
|
||||||
|
--button-secondary-border: var(--primary-color-3);
|
||||||
|
|
||||||
|
/* ---------hover---------- */
|
||||||
|
--button-secondary-text-hover:
|
||||||
|
hsl(165.2,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 100%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 80%));
|
||||||
|
|
||||||
|
--button-secondary-color-hover: var(--primary-color-4);
|
||||||
|
--button-secondary-border-hover: var(--primary-color-4);
|
||||||
|
|
||||||
|
/* ---------active--------- */
|
||||||
|
--button-secondary-text-active:
|
||||||
|
hsl(165.2,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 100%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 80%));
|
||||||
|
|
||||||
|
--button-secondary-color-active:
|
||||||
|
hsl(0,
|
||||||
|
calc(var(--primary-color-4-saturation) - 100%),
|
||||||
|
calc(var(--primary-color-4-lightness) - 15%));
|
||||||
|
|
||||||
|
--button-secondary-border-active:
|
||||||
|
hsl(0,
|
||||||
|
calc(var(--primary-color-4-saturation) - 100%),
|
||||||
|
calc(var(--primary-color-4-lightness) - 15%));
|
||||||
|
|
||||||
|
/* ---------- TERTIARY BUTTONS --------------- */
|
||||||
|
/* ---------- disabled buttons --------------- */
|
||||||
|
--button-tertiary-text: var(--primary-color-4);
|
||||||
|
--button-tertiary-color: var(--primary-color-2);
|
||||||
|
--button-tertiary-border: var(--primary-color-2);
|
||||||
|
|
||||||
|
/* ---------hover---------- */
|
||||||
|
--button-tertiary-text: var(--primary-color-4);
|
||||||
|
--button-tertiary-color: var(--primary-color-2);
|
||||||
|
--button-tertiary-border: var(--primary-color-2);
|
||||||
|
|
||||||
|
--loading-color-1: #eeeeee00;
|
||||||
|
--loading-color-2: #eeeeeeff;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
.theme-template {
|
||||||
|
|
||||||
|
|
||||||
|
If light theme: should go from bright to darker
|
||||||
|
If dark theme: should go from dark to brighter
|
||||||
|
ideally this should not be anything but steps of
|
||||||
|
gray or slightly variants from it
|
||||||
|
|
||||||
|
--primary-color-1: #2E3440;
|
||||||
|
--primary-color-2: #3B4252;
|
||||||
|
--primary-color-3: #434C5E;
|
||||||
|
--primary-color-4: #4C566A;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
If light theme: should go from dark to brighter
|
||||||
|
If dark theme: should go from bright to darker
|
||||||
|
ideally this should not be anything but steps of
|
||||||
|
gray or slightly variants from it
|
||||||
|
|
||||||
|
--secondary-color-1: #ECEFF4;
|
||||||
|
--secondary-color-2: #E5E9F0;
|
||||||
|
--secondary-color-3: #D8DEE9;
|
||||||
|
--secondary-color-4: #C8CED9;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Choose wisely nuance colors. It is not easy to find
|
||||||
|
4 harmonizing nuance colors. But keep in mind, that
|
||||||
|
only one accent color could work too.
|
||||||
|
|
||||||
|
--theme-nuance-color-1: #8FBCBB;
|
||||||
|
--theme-nuance-color-2: #88C0D0;
|
||||||
|
--theme-nuance-color-3: #81A1C1;
|
||||||
|
--theme-nuance-color-4: #5E81AC;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
adapt the color red, orange, yellow, green,
|
||||||
|
purple to the 'mood' of your overall design
|
||||||
|
e.g is it low-contrast? vibrant? dynamic? etc
|
||||||
|
|
||||||
|
--theme-red-color: #BF616A;
|
||||||
|
--theme-orange-color: #D08770;
|
||||||
|
--theme-yellow-color: #EBCB8B;
|
||||||
|
--theme-green-color: #A3BE8C;
|
||||||
|
--theme-purple-color: #B48EAD;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
NOTE: comment all those line `--- ...` out
|
||||||
|
------------------------------------------------
|
||||||
|
--background-color-1:
|
||||||
|
--background-color-2:
|
||||||
|
--background-color-3:
|
||||||
|
--background-color-4:
|
||||||
|
|
||||||
|
--border-color-1:
|
||||||
|
--border-color-2:
|
||||||
|
--border-color-3:
|
||||||
|
|
||||||
|
--border-focus-color:
|
||||||
|
--border-focus-shadow:
|
||||||
|
|
||||||
|
--text-color-plain:
|
||||||
|
--text-color-subtile-1:
|
||||||
|
--text-color-subtile-2:
|
||||||
|
|
||||||
|
--code-background-color:
|
||||||
|
--code-text-color:
|
||||||
|
|
||||||
|
--ui-range-thumb-color:
|
||||||
|
--ui-range-thumb-border:
|
||||||
|
|
||||||
|
--textarea-border-color:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
-------------------------------------------
|
||||||
|
--button-alert-text-hover:
|
||||||
|
--button-alert-color-hover:
|
||||||
|
--button-alert-border-hover:
|
||||||
|
|
||||||
|
--button-alert-text-active:
|
||||||
|
--button-alert-color-active:
|
||||||
|
--button-alert-border-active:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
----------- PRIMARY -----------------------
|
||||||
|
--button should immediately catch the eye--
|
||||||
|
|
||||||
|
--button-primary-text:
|
||||||
|
--button-primary-color:
|
||||||
|
--button-primary-border:
|
||||||
|
|
||||||
|
|
||||||
|
---------hover----------
|
||||||
|
--button-primary-text-hover:
|
||||||
|
--button-primary-color-hover:
|
||||||
|
--button-primary-border-hover:
|
||||||
|
|
||||||
|
|
||||||
|
---------active---------
|
||||||
|
--button-primary-text-active:
|
||||||
|
--button-primary-color-active:
|
||||||
|
--button-primary-border-active:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
------------ SECONDARY ------------------------
|
||||||
|
--button should NOT immediately catch the eye--
|
||||||
|
|
||||||
|
--button-secondary-text:
|
||||||
|
--button-secondary-color:
|
||||||
|
--button-secondary-border:
|
||||||
|
|
||||||
|
|
||||||
|
---------hover----------
|
||||||
|
--button-secondary-text-hover:
|
||||||
|
--button-secondary-color-hover:
|
||||||
|
--button-secondary-border-hover:
|
||||||
|
|
||||||
|
|
||||||
|
---------active---------
|
||||||
|
--button-secondary-text-active:
|
||||||
|
--button-secondary-color-active:
|
||||||
|
--button-secondary-border-active:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
---------- TERTIARY -----------------------
|
||||||
|
---------- disabled buttons ---------------
|
||||||
|
--button-tertiary-text:
|
||||||
|
--button-tertiary-color:
|
||||||
|
--button-tertiary-border:
|
||||||
|
|
||||||
|
|
||||||
|
---------hover----------
|
||||||
|
--button-tertiary-text:
|
||||||
|
--button-tertiary-color:
|
||||||
|
--button-tertiary-border:
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
*/
|
|
@ -31,10 +31,10 @@
|
||||||
})
|
})
|
||||||
|
|
||||||
const params = signal({
|
const params = signal({
|
||||||
n_predict: 358,
|
n_predict: -1, //358,
|
||||||
temperature: 1.0, // adapt to optimized min-p requierements
|
temperature: 1.0, // adapt to optimized min-p requierements
|
||||||
repeat_last_n: 256, // 0 = disable penalty, -1 = context size
|
repeat_last_n: 0, // 0 = disable penalty, -1 = context size
|
||||||
repeat_penalty: 1.18, // 1.0 = disabled
|
repeat_penalty: 1.0, // 1.0 = disabled
|
||||||
top_k: 0, // <= 0 to use vocab size
|
top_k: 0, // <= 0 to use vocab size
|
||||||
top_p: 1.0, // 1.0 = disabled
|
top_p: 1.0, // 1.0 = disabled
|
||||||
min_p: 0.05, // 0 = disabled
|
min_p: 0.05, // 0 = disabled
|
||||||
|
@ -51,6 +51,8 @@
|
||||||
cache_prompt: true
|
cache_prompt: true
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* START: Support for storing prompt templates and parameters in browser's LocalStorage */
|
/* START: Support for storing prompt templates and parameters in browser's LocalStorage */
|
||||||
|
|
||||||
const local_storage_storageKey = "llamacpp_server_local_storage";
|
const local_storage_storageKey = "llamacpp_server_local_storage";
|
||||||
|
@ -455,66 +457,69 @@ function updateSystemPrompt(e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
document.addEventListener('DOMContentLoaded', (event) => {
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// Add event listener for the language selection dropdown
|
|
||||||
document.getElementById('systemLanguage').addEventListener('change', updateSystemLanguage);
|
|
||||||
});
|
|
||||||
//
|
//
|
||||||
async function updateSystemLanguage(event) {
|
// document.addEventListener('DOMContentLoaded', (event) => {
|
||||||
const language = event.target.value;
|
// // Add event listener for the language selection dropdown
|
||||||
const languageFile = language === 'default' ? 'EN_systemPrompts.js' : `${language.toUpperCase()}_systemPrompts.js`;
|
// document.getElementById('systemLanguage').addEventListener('change', updateSystemLanguage);
|
||||||
const uiLanguageFile = language === 'default' ? 'EN_texts.json' : `${language.toUpperCase()}_texts.json`;
|
// });
|
||||||
//
|
// //
|
||||||
try {
|
// async function updateSystemLanguage(event) {
|
||||||
// System prompts
|
// const language = event.target.value;
|
||||||
const promptsModule = await import(`./${languageFile}`);
|
// const languageFile = language === 'default' ? 'EN_systemPrompts.js' : `${language.toUpperCase()}_systemPrompts.js`;
|
||||||
const systemPrompts = promptsModule.systemPrompts;
|
// const uiLanguageFile = language === 'default' ? 'EN_texts.json' : `${language.toUpperCase()}_texts.json`;
|
||||||
// Update the system prompt
|
// //
|
||||||
document.getElementById('prompt').textContent = systemPrompts.default.systemPrompt;
|
// try {
|
||||||
// The UI texts
|
// // System prompts
|
||||||
const response = await fetch(uiLanguageFile);
|
// const promptsModule = await import(`./${languageFile}`);
|
||||||
const uiTexts = await response.json();
|
// const systemPrompts = promptsModule.systemPrompts;
|
||||||
// Update the label
|
// // Update the system prompt
|
||||||
document.getElementById('id_user-name').textContent = uiTexts.USER_NAME;
|
// document.getElementById('prompt').textContent = systemPrompts.default.systemPrompt;
|
||||||
document.getElementById('id_bot-name').textContent = uiTexts.BOT_NAME;
|
// // The UI texts
|
||||||
document.getElementById('id_toggle-label-chat').textContent = uiTexts.TOGGLE_LABEL_CHAT;
|
// const response = await fetch(uiLanguageFile);
|
||||||
document.getElementById('id_toggle-label-complete').textContent = uiTexts.TOGGLE_LABEL_COMPLETE;
|
// const uiTexts = await response.json();
|
||||||
document.getElementById('id_history-template').textContent = uiTexts.HISTORY_TEMPLATE;
|
// // Update the label
|
||||||
document.getElementById('id_prompt-style').textContent = uiTexts.PROMPT_STYLE;
|
// document.getElementById('id_user-name').textContent = uiTexts.USER_NAME;
|
||||||
document.getElementById('id_prompt-template').textContent = uiTexts.PROMPT_TEMPLATE;
|
// document.getElementById('id_bot-name').textContent = uiTexts.BOT_NAME;
|
||||||
document.getElementById('id_reset').textContent = uiTexts.RESET;
|
// document.getElementById('id_toggle-label-chat').textContent = uiTexts.TOGGLE_LABEL_CHAT;
|
||||||
document.getElementById('id_grammar-title').textContent = uiTexts.GRAMMAR_TITLE;
|
// document.getElementById('id_toggle-label-complete').textContent = uiTexts.TOGGLE_LABEL_COMPLETE;
|
||||||
document.getElementById('id_grammar').textContent = uiTexts.GRAMMAR;
|
// document.getElementById('id_history-template').textContent = uiTexts.HISTORY_TEMPLATE;
|
||||||
document.getElementById('id_grammar-order-placeholder').textContent = uiTexts.GRAMMAR_ORDER_PLACEHOLDER;
|
// document.getElementById('id_prompt-style').textContent = uiTexts.PROMPT_STYLE;
|
||||||
document.getElementById('id_grammar-convert-button').textContent = uiTexts.GRAMMAR_CONVERT_BUTTON;
|
// document.getElementById('id_prompt-template').textContent = uiTexts.PROMPT_TEMPLATE;
|
||||||
document.getElementById('id_predict-tokens').textContent = uiTexts.PREDICT_TOKENS;
|
// document.getElementById('id_reset').textContent = uiTexts.RESET;
|
||||||
document.getElementById('id_temperature').textContent = uiTexts.TEMPERATURE;
|
// document.getElementById('id_grammar-title').textContent = uiTexts.GRAMMAR_TITLE;
|
||||||
document.getElementById('id_top-k').textContent = uiTexts.TOP_K;
|
// document.getElementById('id_grammar').textContent = uiTexts.GRAMMAR;
|
||||||
document.getElementById('id_top-p').textContent = uiTexts.TOP_P;
|
// document.getElementById('id_grammar-order-placeholder').textContent = uiTexts.GRAMMAR_ORDER_PLACEHOLDER;
|
||||||
document.getElementById('id_repetition-penalty').textContent = uiTexts.REPETITION_PENALTY;
|
// document.getElementById('id_grammar-convert-button').textContent = uiTexts.GRAMMAR_CONVERT_BUTTON;
|
||||||
document.getElementById('id_more-options').textContent = uiTexts.MORE_OPTIONS;
|
// document.getElementById('id_predict-tokens').textContent = uiTexts.PREDICT_TOKENS;
|
||||||
document.getElementById('id_penalize-last').textContent = uiTexts.PENALIZE_LAST;
|
// document.getElementById('id_temperature').textContent = uiTexts.TEMPERATURE;
|
||||||
document.getElementById('id_tfs-z').textContent = uiTexts.TFS_Z;
|
// document.getElementById('id_top-k').textContent = uiTexts.TOP_K;
|
||||||
document.getElementById('id_penalize-presence').textContent = uiTexts.PENALIZE_PRESENCE;
|
// document.getElementById('id_top-p').textContent = uiTexts.TOP_P;
|
||||||
document.getElementById('id_penalize-frequence').textContent = uiTexts.PENALIZE_FREQUENCE;
|
// document.getElementById('id_repetition-penalty').textContent = uiTexts.REPETITION_PENALTY;
|
||||||
document.getElementById('id_typical-p').textContent = uiTexts.TYPICAL_P;
|
// document.getElementById('id_more-options').textContent = uiTexts.MORE_OPTIONS;
|
||||||
document.getElementById('id_mirostat-off').textContent = uiTexts.MIROSTAT_OFF;
|
// document.getElementById('id_penalize-last').textContent = uiTexts.PENALIZE_LAST;
|
||||||
document.getElementById('id_mirostat-on-1').textContent = uiTexts.MIROSTAT_ON_1;
|
// document.getElementById('id_tfs-z').textContent = uiTexts.TFS_Z;
|
||||||
document.getElementById('id_mirostat-on-2').textContent = uiTexts.MIROSTAT_ON_2;
|
// document.getElementById('id_penalize-presence').textContent = uiTexts.PENALIZE_PRESENCE;
|
||||||
document.getElementById('id_mirostat-entropy').textContent = uiTexts.MIROSTAT_ENTROPY;
|
// document.getElementById('id_penalize-frequence').textContent = uiTexts.PENALIZE_FREQUENCE;
|
||||||
document.getElementById('id_mirostat-learnrate').textContent = uiTexts.MIROSTAT_LEARNRATE;
|
// document.getElementById('id_typical-p').textContent = uiTexts.TYPICAL_P;
|
||||||
document.getElementById('id_show-probabilities').textContent = uiTexts.SHOW_PROBABILITIES;
|
// document.getElementById('id_mirostat-off').textContent = uiTexts.MIROSTAT_OFF;
|
||||||
document.getElementById('id_user-input-placeholder').textContent = uiTexts.USER_INPUT_PLACEHOLDER;
|
// document.getElementById('id_mirostat-on-1').textContent = uiTexts.MIROSTAT_ON_1;
|
||||||
document.getElementById('id_button-back').textContent = uiTexts.BUTTON_BACK;
|
// document.getElementById('id_mirostat-on-2').textContent = uiTexts.MIROSTAT_ON_2;
|
||||||
document.getElementById('id_button-upload-image').textContent = uiTexts.BUTTON_UPLOAD_IMAGE;
|
// document.getElementById('id_mirostat-entropy').textContent = uiTexts.MIROSTAT_ENTROPY;
|
||||||
document.getElementById('id_button-stop-inference').textContent = uiTexts.BUTTON_STOP_INFERENCE;
|
// document.getElementById('id_mirostat-learnrate').textContent = uiTexts.MIROSTAT_LEARNRATE;
|
||||||
document.getElementById('id_button-start-inference').textContent = uiTexts.BUTTON_START_INFERENCE;
|
// document.getElementById('id_show-probabilities').textContent = uiTexts.SHOW_PROBABILITIES;
|
||||||
document.getElementById('id_powered-by').textContent = uiTexts.POWERED_BY;
|
// document.getElementById('id_user-input-placeholder').textContent = uiTexts.USER_INPUT_PLACEHOLDER;
|
||||||
document.getElementById('id_and').textContent = uiTexts.AND;
|
// document.getElementById('id_button-back').textContent = uiTexts.BUTTON_BACK;
|
||||||
} catch (error) {
|
// document.getElementById('id_button-upload-image').textContent = uiTexts.BUTTON_UPLOAD_IMAGE;
|
||||||
console.error('Error loading the language files:', error);
|
// document.getElementById('id_button-stop-inference').textContent = uiTexts.BUTTON_STOP_INFERENCE;
|
||||||
}
|
// document.getElementById('id_button-start-inference').textContent = uiTexts.BUTTON_START_INFERENCE;
|
||||||
}
|
// document.getElementById('id_powered-by').textContent = uiTexts.POWERED_BY;
|
||||||
|
// document.getElementById('id_and').textContent = uiTexts.AND;
|
||||||
|
// } catch (error) {
|
||||||
|
// console.error('Error loading the language files:', error);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
///////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// async function updateTexts(systemPrompts) {
|
// async function updateTexts(systemPrompts) {
|
||||||
// // Update the texts that come from the language files
|
// // Update the texts that come from the language files
|
||||||
|
@ -568,12 +573,14 @@ async function updateSystemLanguage(event) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const FloatField = ({ label, max, min, name, step, value }) => {
|
const FloatField = ({ label, max, min, name, step, value }) => {
|
||||||
return html`
|
return html`
|
||||||
<div>
|
<div>
|
||||||
<label for="${name}">${label}</label>
|
<label for="${name}">${label}</label>
|
||||||
<input type="range" id="${name}" min="${min}" max="${max}" step="${step}" name="${name}" value="${value}" oninput=${updateParamsFloat} />
|
<input type="range" id="${name}" min="${min}" max="${max}" step="${step}" name="${name}" value="${value}" oninput=${updateParamsFloat} />
|
||||||
<span>${value}</span>
|
<span id="${name}-value">${value}</span>
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
};
|
};
|
||||||
|
@ -583,7 +590,7 @@ async function updateSystemLanguage(event) {
|
||||||
<div>
|
<div>
|
||||||
<label for="${name}">${label}</label>
|
<label for="${name}">${label}</label>
|
||||||
<input type="range" id="${name}" min="${min}" max="${max}" step="${step}" name="${name}" value="${value}" oninput=${updateParamsInt} />
|
<input type="range" id="${name}" min="${min}" max="${max}" step="${step}" name="${name}" value="${value}" oninput=${updateParamsInt} />
|
||||||
<span>${value}</span>
|
<span id="${name}-value">${value}</span>
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
};
|
};
|
||||||
|
@ -603,6 +610,7 @@ async function updateSystemLanguage(event) {
|
||||||
return html`
|
return html`
|
||||||
<div class="button-container">
|
<div class="button-container">
|
||||||
<button class="reset-button" title="Caution: This resets the entire form." onclick="${userTemplateReset}">Reset</button>
|
<button class="reset-button" title="Caution: This resets the entire form." onclick="${userTemplateReset}">Reset</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
};
|
};
|
||||||
|
@ -644,6 +652,8 @@ async function updateSystemLanguage(event) {
|
||||||
|
|
||||||
const ChatConfigForm = () => (
|
const ChatConfigForm = () => (
|
||||||
html`
|
html`
|
||||||
|
|
||||||
|
<!-- <button id="theme-toggle">Dark/Light</button> -->
|
||||||
<fieldset class="dropdowns">
|
<fieldset class="dropdowns">
|
||||||
<div>
|
<div>
|
||||||
<select id="promptFormat" name="promptFormat" onchange=${updatePromptFormat}>
|
<select id="promptFormat" name="promptFormat" onchange=${updatePromptFormat}>
|
||||||
|
@ -677,12 +687,15 @@ async function updateSystemLanguage(event) {
|
||||||
<option value="neuralchat">Neural Chat</option>
|
<option value="neuralchat">Neural Chat</option>
|
||||||
<option value="nousCapybara">Nous Capybara</option>
|
<option value="nousCapybara">Nous Capybara</option>
|
||||||
<option value="nousHermes">Nous Hermes</option>
|
<option value="nousHermes">Nous Hermes</option>
|
||||||
|
<option value="openChat">OpenChat</option>
|
||||||
<option value="openhermes2Mistral">OpenHermes 2.5-Mistral</option>
|
<option value="openhermes2Mistral">OpenHermes 2.5-Mistral</option>
|
||||||
<option value="orcamini">Orca Mini v3</option>
|
<option value="orcamini">Orca Mini v3</option>
|
||||||
<option value="sauerkrautLM">SauerkrautLM</option>
|
<option value="sauerkrautLM">SauerkrautLM</option>
|
||||||
<option value="samantha">Samantha</option>
|
<option value="samantha">Samantha</option>
|
||||||
<option value="samanthaMistral">Samantha Mistral</option>
|
<option value="samanthaMistral">Samantha Mistral</option>
|
||||||
<option value="scarlett">Scarlett</option>
|
<option value="scarlett">Scarlett</option>
|
||||||
|
<option value="starlingLM">Starling-7B</option>
|
||||||
|
<option value="starlingLM">Starling-7B Coding</option>
|
||||||
<option value="sydney">Sydney</option>
|
<option value="sydney">Sydney</option>
|
||||||
<option value="synthia">Synthia</option>
|
<option value="synthia">Synthia</option>
|
||||||
<option value="tess">Tess</option>
|
<option value="tess">Tess</option>
|
||||||
|
@ -697,12 +710,14 @@ async function updateSystemLanguage(event) {
|
||||||
<option value="airoboros">Airoboros</option>
|
<option value="airoboros">Airoboros</option>
|
||||||
<option value="alpaca">Alpaca</option>
|
<option value="alpaca">Alpaca</option>
|
||||||
<option value="atlas">Atlas</option>
|
<option value="atlas">Atlas</option>
|
||||||
|
<option value="cot">Chain of Tought</option>
|
||||||
|
<option value="deduce">Critical Thinking</option>
|
||||||
<option value="deepseekcoder">Deepseek Coder</option>
|
<option value="deepseekcoder">Deepseek Coder</option>
|
||||||
<option value="jordan">Jordan</option>
|
<option value="jordan">Jordan</option>
|
||||||
<option value="leomistral">Leo Mistral</option>
|
<option value="leomistral">Leo Mistral</option>
|
||||||
<option value="med42">Med42</option>
|
<option value="med42">Med42</option>
|
||||||
<option value="mistralopenorca">Mistral OpenOrca</option>
|
|
||||||
<option value="migeltot">Migel's Tree of Thought</option>
|
<option value="migeltot">Migel's Tree of Thought</option>
|
||||||
|
<option value="mistralopenorca">Mistral OpenOrca</option>
|
||||||
<option value="orcamini">Orca Mini</option>
|
<option value="orcamini">Orca Mini</option>
|
||||||
<option value="samantha">Samantha</option>
|
<option value="samantha">Samantha</option>
|
||||||
<option value="sauerkraut">Sauerkraut</option>
|
<option value="sauerkraut">Sauerkraut</option>
|
||||||
|
@ -711,9 +726,18 @@ async function updateSystemLanguage(event) {
|
||||||
</select>
|
</select>
|
||||||
<!--<select id="systemLanguage" name="systemLanguage">-->
|
<!--<select id="systemLanguage" name="systemLanguage">-->
|
||||||
<!--<option value="default">English</option>-->
|
<!--<option value="default">English</option>-->
|
||||||
<!--<option value="DE">German</option>-->
|
<!--<option value="DE">German</option>-->
|
||||||
<!--<option value="placeholderLanguage">Placeholder</option>-->
|
<!--<option value="placeholderLanguage">Placeholder</option>-->
|
||||||
<!--</select>-->
|
<!--</select>-->
|
||||||
|
<select id="theme-selector">
|
||||||
|
<option value="default">Default</option>
|
||||||
|
<option value="mangotango">Mango Tango</option>
|
||||||
|
<option value="playground">Playground</option>
|
||||||
|
<option value="polarnight">Polar Night</option>
|
||||||
|
<option value="snowstorm">Snow Storm</option>
|
||||||
|
<option value="been_in_order">Been In Order</option>
|
||||||
|
<!-- ... more themes ... -->
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
${PromptControlFieldSet()}
|
${PromptControlFieldSet()}
|
||||||
|
@ -728,7 +752,7 @@ async function updateSystemLanguage(event) {
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<details>
|
<details open>
|
||||||
<summary><span class="summary-title" id="id_prompt-style">Prompt Style</span></summary>
|
<summary><span class="summary-title" id="id_prompt-style">Prompt Style</span></summary>
|
||||||
<div class="two-columns">
|
<div class="two-columns">
|
||||||
<div>
|
<div>
|
||||||
|
@ -777,7 +801,7 @@ async function updateSystemLanguage(event) {
|
||||||
${IntField({ label: "Prediction", max: 2048, min: -1, step: 16, name: "n_predict", value: params.value.n_predict, })}
|
${IntField({ label: "Prediction", max: 2048, min: -1, step: 16, name: "n_predict", value: params.value.n_predict, })}
|
||||||
${FloatField({ label: "Min-P sampling", max: 1.0, min: 0.0, name: "min_p", step: 0.01, value: params.value.min_p })}
|
${FloatField({ label: "Min-P sampling", max: 1.0, min: 0.0, name: "min_p", step: 0.01, value: params.value.min_p })}
|
||||||
${FloatField({ label: "Repetition Penalty", max: 2.0, min: 0.0, name: "repeat_penalty", step: 0.01, value: params.value.repeat_penalty })}
|
${FloatField({ label: "Repetition Penalty", max: 2.0, min: 0.0, name: "repeat_penalty", step: 0.01, value: params.value.repeat_penalty })}
|
||||||
${FloatField({ label: "Temperature", max: 1.5, min: 0.0, name: "temperature", step: 0.01, value: params.value.temperature })}
|
${FloatField({ label: "Temperature", max: 2.0, min: 0.0, name: "temperature", step: 0.01, value: params.value.temperature })}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
|
@ -1031,7 +1055,69 @@ async function updateSystemLanguage(event) {
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
|
var themeSelector = document.getElementById('theme-selector');
|
||||||
|
|
||||||
|
themeSelector.addEventListener('change', function(event) {
|
||||||
|
// remove all existing/defined theme classes
|
||||||
|
document.body.classList.remove('theme-default', 'theme-mangotango', 'theme-playground', 'theme-polarnight', 'theme-snowstorm', 'theme-been_in_order');
|
||||||
|
// add the selected theme class
|
||||||
|
var selectedTheme = event.target.value;
|
||||||
|
if (selectedTheme !== 'default') {
|
||||||
|
document.body.classList.add('theme-' + selectedTheme);
|
||||||
|
}
|
||||||
|
// save selection in local storage
|
||||||
|
localStorage.setItem('selected-theme', selectedTheme);
|
||||||
|
});
|
||||||
|
|
||||||
|
// set the selected theme when loading the page
|
||||||
|
var savedTheme = localStorage.getItem('selected-theme');
|
||||||
|
if (savedTheme && savedTheme !== 'default') {
|
||||||
|
document.body.classList.add('theme-' + savedTheme);
|
||||||
|
themeSelector.value = savedTheme;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
// snapping of the slider to indicate 'disabled'
|
||||||
|
document.addEventListener('DOMContentLoaded', (event) => {
|
||||||
|
// define an object that contains snap values and ranges for each slider
|
||||||
|
const snapSettings = {
|
||||||
|
temperature: { snapValue: 1.0, snapRangeMultiplier: 6 },
|
||||||
|
min_p: { snapValue: 0.05, snapRangeMultiplier: 2 },
|
||||||
|
top_p: { snapValue: 1.0, snapRangeMultiplier: 4 },
|
||||||
|
tfs_z: { snapValue: 1.0, snapRangeMultiplier: 4 },
|
||||||
|
typical_p: { snapValue: 1.0, snapRangeMultiplier: 4 },
|
||||||
|
repeat_penalty: { snapValue: 1.0, snapRangeMultiplier: 4 },
|
||||||
|
presence_penalty: { snapValue: 0.0, snapRangeMultiplier: 4 },
|
||||||
|
frequency_penalty: { snapValue: 0.0, snapRangeMultiplier: 4 },
|
||||||
|
};
|
||||||
|
// add an event listener for each slider
|
||||||
|
Object.keys(snapSettings).forEach(sliderName => {
|
||||||
|
const slider = document.querySelector(`input[name="${sliderName}"]`);
|
||||||
|
const settings = snapSettings[sliderName];
|
||||||
|
|
||||||
|
slider.addEventListener('input', (e) => {
|
||||||
|
let value = parseFloat(e.target.value);
|
||||||
|
const step = parseFloat(e.target.step);
|
||||||
|
const snapRange = step * settings.snapRangeMultiplier;
|
||||||
|
const valueDisplay = document.getElementById(`${e.target.name}-value`);
|
||||||
|
|
||||||
|
if (value >= settings.snapValue - snapRange && value <= settings.snapValue + snapRange) {
|
||||||
|
value = settings.snapValue; // set value to the snap value
|
||||||
|
e.target.value = value; // update the slider value
|
||||||
|
}
|
||||||
|
// update the displayed value
|
||||||
|
if (valueDisplay) {
|
||||||
|
valueDisplay.textContent = value.toFixed(2); // display value with two decimal places
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
render(h(App), document.querySelector('#container'));
|
render(h(App), document.querySelector('#container'));
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
|
@ -1,225 +1,231 @@
|
||||||
// extended list
|
// extended list
|
||||||
export const promptFormats = {
|
export const promptFormats = {
|
||||||
"airoborosl2": {
|
"airoborosl2": {
|
||||||
template: "{{prompt}} {{history}} {{char}}",
|
template: "{{prompt}} {{history}} {{char}}",
|
||||||
historyTemplate: "{{name}}: {{message}}",
|
historyTemplate: "{{name}}: {{message}}",
|
||||||
char: "ASSISTANT",
|
char: "ASSISTANT",
|
||||||
user: "USER"
|
user: "USER"
|
||||||
},
|
},
|
||||||
"alpaca": {
|
"alpaca": {
|
||||||
template: "{{prompt}}\n\n{{history}}\n\n### {{char}}:",
|
template: "{{prompt}}\n\n{{history}}\n\n### {{char}}:",
|
||||||
historyTemplate: "### {{name}}:\n{{message}}",
|
historyTemplate: "### {{name}}:\n{{message}}",
|
||||||
char: "Response",
|
char: "Response",
|
||||||
user: "Instruction"
|
user: "Instruction"
|
||||||
},
|
},
|
||||||
"bakllava": {
|
"bakllava": {
|
||||||
template: "{{history}}{{char}}:",
|
template: "{{history}}{{char}}:",
|
||||||
historyTemplate: "{{name}}: {{message}}\n",
|
historyTemplate: "{{name}}: {{message}}\n",
|
||||||
char: "ASSISTANT",
|
char: "ASSISTANT",
|
||||||
user: "USER"
|
user: "USER"
|
||||||
},
|
},
|
||||||
"chatml": {
|
"chatml": {
|
||||||
template: "<|im_start|>system\n{{prompt}}<|im_end|>\n{{history}}\n<|im_start|>{{char}}",
|
template: "<|im_start|>system\n{{prompt}}<|im_end|>\n{{history}}\n<|im_start|>{{char}}",
|
||||||
historyTemplate: "<|im_start|>{{user}}\n{{message}}<|im_end|>",
|
historyTemplate: "<|im_start|>{{user}}\n{{message}}<|im_end|>",
|
||||||
char: "assistant",
|
char: "assistant",
|
||||||
user: "user"
|
user: "user"
|
||||||
},
|
},
|
||||||
"codeCherryPop": {
|
"codeCherryPop": {
|
||||||
template: "{{prompt}}\n\n{{history}}\n\n### {{char}}:",
|
template: "{{prompt}}\n\n{{history}}\n\n### {{char}}:",
|
||||||
historyTemplate: "### {{name}}:\n{{message}}",
|
historyTemplate: "### {{name}}:\n{{message}}",
|
||||||
char: "Response",
|
char: "Response",
|
||||||
user: "Instruction"
|
user: "Instruction"
|
||||||
},
|
},
|
||||||
"deepseekCoder": {
|
"deepseekCoder": {
|
||||||
template: "{{prompt}}\n{{history}}\n### {{char}}:",
|
template: "{{prompt}}\n{{history}}\n### {{char}}:",
|
||||||
historyTemplate: "### {{name}}:\n{{message}}",
|
historyTemplate: "### {{name}}:\n{{message}}",
|
||||||
char: "Response",
|
char: "Response",
|
||||||
user: "Instruction"
|
user: "Instruction"
|
||||||
},
|
},
|
||||||
"dolphinMistral": {
|
"dolphinMistral": {
|
||||||
template: "<|im_start|>system\n{{prompt}}<|im_end|>\n{{history}}\n<|im_start|>{{char}}",
|
template: "<|im_start|>system\n{{prompt}}<|im_end|>\n{{history}}\n<|im_start|>{{char}}",
|
||||||
historyTemplate: "<|im_start|>{{user}}\n{{message}}<|im_end|>",
|
historyTemplate: "<|im_start|>{{user}}\n{{message}}<|im_end|>",
|
||||||
char: "assistant",
|
char: "assistant",
|
||||||
user: "user"
|
user: "user"
|
||||||
},
|
},
|
||||||
"evolvedSeeker": {
|
"evolvedSeeker": {
|
||||||
template: "<|im_start|>system\n{{prompt}}<|im_end|>\n{{history}}\n<|im_start|>{{char}}",
|
template: "<|im_start|>system\n{{prompt}}<|im_end|>\n{{history}}\n<|im_start|>{{char}}",
|
||||||
historyTemplate: "<|im_start|>{{user}}\n{{message}}<|im_end|>",
|
historyTemplate: "<|im_start|>{{user}}\n{{message}}<|im_end|>",
|
||||||
char: "assistant",
|
char: "assistant",
|
||||||
user: "user"
|
user: "user"
|
||||||
},
|
},
|
||||||
"goliath120b": {
|
"goliath120b": {
|
||||||
template: "{{prompt}}\n\n{{history}}\n{{char}}:",
|
template: "{{prompt}}\n\n{{history}}\n{{char}}:",
|
||||||
historyTemplate: "{{name}}: {{message}}",
|
historyTemplate: "{{name}}: {{message}}",
|
||||||
char: "ASSISTANT",
|
char: "ASSISTANT",
|
||||||
user: "USER"
|
user: "USER"
|
||||||
},
|
},
|
||||||
"jordan": {
|
"jordan": {
|
||||||
template: "{{prompt}}\n\n{{history}}\n{{char}}:",
|
template: "{{prompt}}\n\n{{history}}\n{{char}}:",
|
||||||
historyTemplate: "{{name}}: {{message}}",
|
historyTemplate: "{{name}}: {{message}}",
|
||||||
char: "ASSISTANT",
|
char: "ASSISTANT",
|
||||||
user: "USER"
|
user: "USER"
|
||||||
},
|
},
|
||||||
"llama2": {
|
"llama2": {
|
||||||
template: "<s>[INST] <<SYS>>\n{{prompt}}\n<</SYS>>\n\n{{history}} [/INST] {{char}} </s><s>[INST] ",
|
template: "<s>[INST] <<SYS>>\n{{prompt}}\n<</SYS>>\n\n{{history}} [/INST] {{char}} </s><s>[INST] ",
|
||||||
historyTemplate: "{{name}}: {{message}} [/INST]",
|
historyTemplate: "{{name}}: {{message}} [/INST]",
|
||||||
char: "llama",
|
char: "llama",
|
||||||
user: "user"
|
user: "user"
|
||||||
},
|
},
|
||||||
"llava": {
|
"llava": {
|
||||||
template: "{{history}}{{char}}:",
|
template: "{{history}}{{char}}:",
|
||||||
historyTemplate: "{{name}}: {{message}}\n",
|
historyTemplate: "{{name}}: {{message}}\n",
|
||||||
char: "ASSISTANT",
|
char: "ASSISTANT",
|
||||||
user: "USER"
|
user: "USER"
|
||||||
},
|
},
|
||||||
"leoHessianai": {
|
"leoHessianai": {
|
||||||
template: "<|im_start|>system\n{{prompt}}<|im_end|>\n{{history}}\n<|im_start|>{{char}}",
|
template: "<|im_start|>system\n{{prompt}}<|im_end|>\n{{history}}\n<|im_start|>{{char}}",
|
||||||
historyTemplate: "<|im_start|>{{user}}\n{{message}}<|im_end|>",
|
historyTemplate: "<|im_start|>{{user}}\n{{message}}<|im_end|>",
|
||||||
char: "assistant",
|
char: "assistant",
|
||||||
user: "user"
|
user: "user"
|
||||||
},
|
},
|
||||||
"leoMistral": {
|
"leoMistral": {
|
||||||
template: "{{prompt}} {{history}} {{char}}",
|
template: "{{prompt}} {{history}} {{char}}",
|
||||||
historyTemplate: "{{name}}: {{message}}",
|
historyTemplate: "{{name}}: {{message}}",
|
||||||
char: "ASSISTANT",
|
char: "ASSISTANT",
|
||||||
user: "USER"
|
user: "USER"
|
||||||
},
|
},
|
||||||
"marx": {
|
"marx": {
|
||||||
template: "{{history}}\n{{char}}:",
|
template: "{{history}}\n{{char}}:",
|
||||||
historyTemplate: "{{name}}: {{message}}",
|
historyTemplate: "{{name}}: {{message}}",
|
||||||
char: "ASSISTANT",
|
char: "ASSISTANT",
|
||||||
user: "USER"
|
user: "USER"
|
||||||
},
|
},
|
||||||
"med42": {
|
"med42": {
|
||||||
template: "<|system|>: {{prompt}}\n{{history}}\n{{char}}",
|
template: "<|system|>: {{prompt}}\n{{history}}\n{{char}}",
|
||||||
historyTemplate: "<|{{name}}|>:{{message}}",
|
historyTemplate: "<|{{name}}|>:{{message}}",
|
||||||
char: "assistant",
|
char: "assistant",
|
||||||
user: "prompter"
|
user: "prompter"
|
||||||
},
|
},
|
||||||
"metaMath": {
|
"metaMath": {
|
||||||
template: "{{prompt}}\n\n{{history}}\n\n### {{char}}:",
|
template: "{{prompt}}\n\n{{history}}\n\n### {{char}}:",
|
||||||
historyTemplate: "### {{name}}:\n{{message}}",
|
historyTemplate: "### {{name}}:\n{{message}}",
|
||||||
char: "Response",
|
char: "Response",
|
||||||
user: "Instruction"
|
user: "Instruction"
|
||||||
},
|
},
|
||||||
"mistralInstruct": {
|
"mistralInstruct": {
|
||||||
template: "<s>{{history}} [/INST]\n{{char}}</s>",
|
template: "<s>{{history}} [/INST]\n{{char}}</s>",
|
||||||
historyTemplate: "{{name}} {{message}}",
|
historyTemplate: "{{name}} {{message}}",
|
||||||
char: "",
|
char: "",
|
||||||
user: "[INST] "
|
user: "[INST] "
|
||||||
},
|
},
|
||||||
"mistralOpenOrca": {
|
"mistralOpenOrca": {
|
||||||
template: "<|im_start|>system\n{{prompt}}<|im_end|>\n{{history}}\n<|im_start|>{{char}}",
|
template: "<|im_start|>system\n{{prompt}}<|im_end|>\n{{history}}\n<|im_start|>{{char}}",
|
||||||
historyTemplate: "<|im_start|>{{user}}\n{{message}}<|im_end|>",
|
historyTemplate: "<|im_start|>{{user}}\n{{message}}<|im_end|>",
|
||||||
char: "assistant",
|
char: "assistant",
|
||||||
user: "user"
|
user: "user"
|
||||||
},
|
},
|
||||||
"mythomax": {
|
"mythomax": {
|
||||||
template: "{{prompt}}\n\n{{history}}\n\n### {{char}}:",
|
template: "{{prompt}}\n\n{{history}}\n\n### {{char}}:",
|
||||||
historyTemplate: "### {{name}}:\n{{message}}",
|
historyTemplate: "### {{name}}:\n{{message}}",
|
||||||
char: "Response",
|
char: "Response",
|
||||||
user: "Instruction"
|
user: "Instruction"
|
||||||
},
|
},
|
||||||
"neuralchat": {
|
"neuralchat": {
|
||||||
template: "### System:\n{{prompt}}\n{{history}}\n### {{char}}:",
|
template: "### System:\n{{prompt}}\n{{history}}\n### {{char}}:",
|
||||||
historyTemplate: "### {{name}}:\n{{message}}",
|
historyTemplate: "### {{name}}:\n{{message}}",
|
||||||
char: "Assistant",
|
char: "Assistant",
|
||||||
user: "User"
|
user: "User"
|
||||||
},
|
},
|
||||||
"nousCapybara": {
|
"nousCapybara": {
|
||||||
template: "{{history}}\n{{char}}",
|
template: "{{history}}\n{{char}}",
|
||||||
historyTemplate: "\n{{name}}: {{message}}",
|
historyTemplate: "\n{{name}}: {{message}}",
|
||||||
char: "ASSISTANT",
|
char: "ASSISTANT",
|
||||||
user: "USER"
|
user: "USER"
|
||||||
},
|
},
|
||||||
"nousHermes": {
|
"nousHermes": {
|
||||||
template: "### Instruction: {{prompt}}\n{{history}}\n### {{char}}:",
|
template: "### Instruction: {{prompt}}\n{{history}}\n### {{char}}:",
|
||||||
historyTemplate: "\n### {{name}}: {{message}}",
|
historyTemplate: "\n### {{name}}: {{message}}",
|
||||||
char: "Response",
|
char: "Response",
|
||||||
user: "Input"
|
user: "Input"
|
||||||
},
|
},
|
||||||
"openChat": {
|
"openChat": {
|
||||||
template: "{{history}}{{char}}",
|
template: "{{history}}{{char}}",
|
||||||
historyTemplate: "GPT4 {{user}}: {{message}}<|end_of_turn|>",
|
historyTemplate: "GPT4 {{user}}: {{message}}<|end_of_turn|>",
|
||||||
char: "Assistant",
|
char: "Assistant",
|
||||||
user: "User"
|
user: "User"
|
||||||
},
|
},
|
||||||
"openhermes2Mistral": {
|
"openhermes2Mistral": {
|
||||||
template: "<|im_start|>system\n{{prompt}}<|im_end|>\n{{history}}\n<|im_start|>{{char}}",
|
template: "<|im_start|>system\n{{prompt}}<|im_end|>\n{{history}}\n<|im_start|>{{char}}",
|
||||||
historyTemplate: "<|im_start|>{{user}}\n{{message}}<|im_end|>",
|
historyTemplate: "<|im_start|>{{user}}\n{{message}}<|im_end|>",
|
||||||
char: "assistant",
|
char: "assistant",
|
||||||
user: "user"
|
user: "user"
|
||||||
},
|
},
|
||||||
"orcamini": {
|
"orcamini": {
|
||||||
template: "{{prompt}}\n\n{{history}}\n\n### {{char}}:",
|
template: "{{prompt}}\n\n{{history}}\n\n### {{char}}:",
|
||||||
historyTemplate: "### {{name}}:\n{{message}}",
|
historyTemplate: "### {{name}}:\n{{message}}",
|
||||||
char: "Response",
|
char: "Response",
|
||||||
user: "Instruction"
|
user: "Instruction"
|
||||||
},
|
},
|
||||||
"sauerkraut": {
|
"sauerkraut": {
|
||||||
template: "{{prompt}}\n{{history}}\n{{char}}:",
|
template: "{{prompt}}\n{{history}}\n{{char}}:",
|
||||||
historyTemplate: "{{name}}: {{message}}",
|
historyTemplate: "{{name}}: {{message}}",
|
||||||
char: "Assistant",
|
char: "Assistant",
|
||||||
user: "User"
|
user: "User"
|
||||||
},
|
},
|
||||||
"samantha": {
|
"samantha": {
|
||||||
template: "{{prompt}}\n\n{{history}}\n{{char}}:",
|
template: "{{prompt}}\n\n{{history}}\n{{char}}:",
|
||||||
historyTemplate: "{{name}}: {{message}}",
|
historyTemplate: "{{name}}: {{message}}",
|
||||||
char: "ASSISTANT",
|
char: "ASSISTANT",
|
||||||
user: "USER"
|
user: "USER"
|
||||||
},
|
},
|
||||||
"samanthaMistral": {
|
"samanthaMistral": {
|
||||||
template: "<|im_start|>system\n{{prompt}}<|im_end|>\n{{history}}\n<|im_start|>{{char}}",
|
template: "<|im_start|>system\n{{prompt}}<|im_end|>\n{{history}}\n<|im_start|>{{char}}",
|
||||||
historyTemplate: "<|im_start|>{{user}}\n{{message}}<|im_end|>",
|
historyTemplate: "<|im_start|>{{user}}\n{{message}}<|im_end|>",
|
||||||
char: "assistant",
|
char: "assistant",
|
||||||
user: "user"
|
user: "user"
|
||||||
},
|
},
|
||||||
"scarlett": {
|
"scarlett": {
|
||||||
template: "{{prompt}}\n\n{{history}}\n{{char}}:",
|
template: "{{prompt}}\n\n{{history}}\n{{char}}:",
|
||||||
historyTemplate: "{{name}}: {{message}}",
|
historyTemplate: "{{name}}: {{message}}",
|
||||||
char: "ASSISTANT",
|
char: "ASSISTANT",
|
||||||
user: "USER"
|
user: "USER"
|
||||||
},
|
},
|
||||||
"starlingLM": {
|
"starlingLM": {
|
||||||
template: "{{history}}{{char}}",
|
template: "{{history}}{{char}}",
|
||||||
historyTemplate: "GPT4 {{user}}: {{message}}<|end_of_turn|>",
|
historyTemplate: "GPT4 Correct {{user}}: {{message}}<|end_of_turn|>",
|
||||||
char: "Assistant",
|
char: "Assistant",
|
||||||
user: "User"
|
user: "User"
|
||||||
},
|
},
|
||||||
"sydney": {
|
"starlingLMCode": {
|
||||||
template: "{{prompt}}\n\n{{history}}\n{{char}}",
|
template: "{{history}}{{char}}",
|
||||||
historyTemplate: "### {{name}}:\n{{message}}\n",
|
historyTemplate: "Code {{user}}: {{message}}<|end_of_turn|>",
|
||||||
char: "Response",
|
char: "Assistant",
|
||||||
user: "Instruction"
|
user: "User"
|
||||||
},
|
},
|
||||||
"synthia": {
|
"sydney": {
|
||||||
template: "SYSTEM: {{prompt}}\n{{history}}\n{{char}}:",
|
template: "{{prompt}}\n\n{{history}}\n{{char}}",
|
||||||
historyTemplate: "{{name}}: {{message}}",
|
historyTemplate: "### {{name}}:\n{{message}}\n",
|
||||||
char: "ASSISTANT",
|
char: "Response",
|
||||||
user: "USER"
|
user: "Instruction"
|
||||||
},
|
},
|
||||||
"tess": {
|
"synthia": {
|
||||||
template: "SYSTEM: {{prompt}}\n{{history}}\n{{char}}:",
|
template: "SYSTEM: {{prompt}}\n{{history}}\n{{char}}:",
|
||||||
historyTemplate: "{{name}}: {{message}}",
|
historyTemplate: "{{name}}: {{message}}",
|
||||||
char: "ASSISTANT",
|
char: "ASSISTANT",
|
||||||
user: "USER"
|
user: "USER"
|
||||||
},
|
},
|
||||||
"vicuna": {
|
"tess": {
|
||||||
template: "{{prompt}}\n{{history}}\n{{char}}:",
|
template: "SYSTEM: {{prompt}}\n{{history}}\n{{char}}:",
|
||||||
historyTemplate: "\n{{name}}: {{message}}",
|
historyTemplate: "{{name}}: {{message}}",
|
||||||
char: "ASSISTANT",
|
char: "ASSISTANT",
|
||||||
user: "USER"
|
user: "USER"
|
||||||
},
|
},
|
||||||
"yi34b": {
|
"vicuna": {
|
||||||
template: "{{history}} {{char}}",
|
template: "{{prompt}}\n{{history}}\n{{char}}:",
|
||||||
historyTemplate: "{{name}}: {{message}}",
|
historyTemplate: "\n{{name}}: {{message}}",
|
||||||
char: "Assistant",
|
char: "ASSISTANT",
|
||||||
user: "Human"
|
user: "USER"
|
||||||
},
|
},
|
||||||
"zephyr": {
|
"yi34b": {
|
||||||
template: "<|system|>\n{{prompt}}</s>\n{{history}}\n{{char}}",
|
template: "{{history}} {{char}}",
|
||||||
historyTemplate: "<|{{name}}|>\n{{message}}</s>",
|
historyTemplate: "{{name}}: {{message}}",
|
||||||
char: "assistant",
|
char: "Assistant",
|
||||||
user: "user"
|
user: "Human"
|
||||||
}
|
},
|
||||||
};
|
"zephyr": {
|
||||||
|
template: "<|system|>\n{{prompt}}</s>\n{{history}}\n{{char}}",
|
||||||
|
historyTemplate: "<|{{name}}|>\n{{message}}</s>",
|
||||||
|
char: "assistant",
|
||||||
|
user: "user"
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
File diff suppressed because it is too large
Load diff
226
examples/server/public/theme-been_in_order.css
Normal file
226
examples/server/public/theme-been_in_order.css
Normal file
|
@ -0,0 +1,226 @@
|
||||||
|
/* Author: Yazan Agha-Schrader */
|
||||||
|
/* Inspiration was a batman wallpaper that i have on my phone */
|
||||||
|
|
||||||
|
.theme-been_in_order {
|
||||||
|
|
||||||
|
--primary-color-1: hsl(202, 11%, 19%);
|
||||||
|
--primary-color-2: hsl(202, 11%, 23%);
|
||||||
|
--primary-color-3: hsl(201, 11%, 28%);
|
||||||
|
--primary-color-4: hsl(201, 11%, 40%);
|
||||||
|
|
||||||
|
--secondary-color-1: hsl(201, 11%, 80%);
|
||||||
|
--secondary-color-2: hsl(201, 11%, 74%);
|
||||||
|
--secondary-color-3: hsl(201, 11%, 67%);
|
||||||
|
--secondary-color-4: hsl(201, 11%, 60%);
|
||||||
|
|
||||||
|
|
||||||
|
--theme-nuance-color-1: hsl(44.5, 96.7%, 52.9%);
|
||||||
|
--theme-nuance-color-2: hsl(44.5, 96.7%, 52.9%);
|
||||||
|
--theme-nuance-color-3: hsl(44.5, 96.7%, 52.9%);
|
||||||
|
--theme-nuance-color-4: hsl(44.5, 96.7%, 52.9%);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------- PRIMARY COLORS ----------------- */
|
||||||
|
--primary-color-1: hsl(201, 11%, 19%);
|
||||||
|
--primary-color-1-hue: 201;
|
||||||
|
--primary-color-1-saturation: 11%;
|
||||||
|
--primary-color-1-lightness: 19%;
|
||||||
|
|
||||||
|
--primary-color-2: hsl(201, 11%, 23%);
|
||||||
|
--primary-color-2-hue: 201;
|
||||||
|
--primary-color-2-saturation: 11%;
|
||||||
|
--primary-color-2-lightness: 23%;
|
||||||
|
|
||||||
|
--primary-color-3: hsl(201, 11%, 28%);
|
||||||
|
--primary-color-3-hue: 201;
|
||||||
|
--primary-color-3-saturation: 11%;
|
||||||
|
--primary-color-3-lightness: 28%;
|
||||||
|
|
||||||
|
--primary-color-4: hsl(201, 11%, 40%);
|
||||||
|
--primary-color-4-hue: 201;
|
||||||
|
--primary-color-4-saturation: 11%;
|
||||||
|
--primary-color-4-lightness: 40%;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------- SECONDARY COLORS --------------- */
|
||||||
|
--secondary-color-1: hsl(201, 11%, 80%);
|
||||||
|
--secondary-color-1-hue: 201;
|
||||||
|
--secondary-color-1-saturation: 11%;
|
||||||
|
--secondary-color-1-lightness: 80%;
|
||||||
|
|
||||||
|
--secondary-color-2: hsl(201, 11%, 74%);
|
||||||
|
--secondary-color-2-hue: 201;
|
||||||
|
--secondary-color-2-saturation: 11%;
|
||||||
|
--secondary-color-2-lightness: 74%;
|
||||||
|
|
||||||
|
--secondary-color-3: hsl(201, 11%, 67%);
|
||||||
|
--secondary-color-3-hue: 201;
|
||||||
|
--secondary-color-3-saturation: 11%;
|
||||||
|
--secondary-color-3-lightness: 67%;
|
||||||
|
|
||||||
|
--secondary-color-4: hsl(201, 11%, 60%);
|
||||||
|
--secondary-color-4-hue: 201;
|
||||||
|
--secondary-color-4-saturation: 11%;
|
||||||
|
--secondary-color-4-lightness: 60%;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ----------- NUANCES COLORS ---------------- */
|
||||||
|
--theme-nuance-color-1: hsl(44.5, 96.7%, 52.9%);
|
||||||
|
--theme-nuance-color-1-hue: 44.5;
|
||||||
|
--theme-nuance-color-1-saturation: 96.7%;
|
||||||
|
--theme-nuance-color-1-lightness: 52.9%;
|
||||||
|
|
||||||
|
--theme-nuance-color-2: hsl(44.5, 96.7%, 52.9%);
|
||||||
|
--theme-nuance-color-2-hue: 44.5;
|
||||||
|
--theme-nuance-color-2-saturation: 96.7%;
|
||||||
|
--theme-nuance-color-2-lightness: 52.9%;
|
||||||
|
|
||||||
|
--theme-nuance-color-2: hsl(44.5, 96.7%, 52.9%);
|
||||||
|
--theme-nuance-color-3-hue: 44.5;
|
||||||
|
--theme-nuance-color-3-saturation: 96.7%;
|
||||||
|
--theme-nuance-color-3-lightness: 52.9%;
|
||||||
|
|
||||||
|
--theme-nuance-color-2: hsl(44.5, 96.7%, 52.9%);
|
||||||
|
--theme-nuance-color-4-hue: 44.5;
|
||||||
|
--theme-nuance-color-4-saturation: 96.7%;
|
||||||
|
--theme-nuance-color-4-lightness: 52.9%;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ----------- ROYGP COLORS ------------------ */
|
||||||
|
--theme-red-color: hsl(232, 40%, 45%);
|
||||||
|
--theme-orange-color: #e76f51;
|
||||||
|
--theme-yellow-color: #ffd95f;
|
||||||
|
--theme-green-color: #A3BE8C;
|
||||||
|
--theme-purple-color: hsl(232, 30%, 40%);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ------------------------------------------- */
|
||||||
|
--background-color-1: var(--primary-color-1);
|
||||||
|
--background-color-2: var(--primary-color-2);
|
||||||
|
--background-color-3: var(--primary-color-3);
|
||||||
|
--background-color-4: var(--primary-color-4);
|
||||||
|
|
||||||
|
--border-color-1: var(--primary-color-2);
|
||||||
|
--border-color-2: var(--primary-color-3);
|
||||||
|
--border-color-3: var(--primary-color-4);
|
||||||
|
|
||||||
|
--border-focus-color: var(--theme-nuance-color-2);
|
||||||
|
--border-focus-shadow: var(--theme-nuance-color-1);
|
||||||
|
|
||||||
|
--text-color-plain: var(--secondary-color-1);
|
||||||
|
--text-color-subtile-1: var(--secondary-color-2);
|
||||||
|
--text-color-subtile-2: var(--secondary-color-3);
|
||||||
|
|
||||||
|
--code-background-color: var(--secondary-color-2);
|
||||||
|
--code-text-color: var(--primary-color-2);
|
||||||
|
|
||||||
|
--ui-range-thumb-color: var(--theme-nuance-color-3);
|
||||||
|
--ui-range-thumb-border: var(--ui-ranger-thumb-color);
|
||||||
|
|
||||||
|
--textarea-border-color: var(--secondary-color-4);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ------------------------------------------- */
|
||||||
|
--button-alert-text-hover: var(--secondary-color-1);
|
||||||
|
--button-alert-color-hover: var(--theme-purple-color);
|
||||||
|
--button-alert-border-hover: var(--theme-purple-color);
|
||||||
|
|
||||||
|
--button-alert-text-active: var(--secondary-color-1);
|
||||||
|
--button-alert-color-active: var(--theme-red-color);
|
||||||
|
--button-alert-border-active: var(--theme-red-color);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ----------- PRIMARY BUTTONS --------------- */
|
||||||
|
/* - button should immediately catch the eye - */
|
||||||
|
--button-primary-text: var(--primary-color-1);
|
||||||
|
--button-primary-color: var(--theme-nuance-color-3);
|
||||||
|
--button-primary-border: var(--theme-nuance-color-3);
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------hover---------- */
|
||||||
|
--button-primary-text-hover:
|
||||||
|
hsl(201,
|
||||||
|
calc(var(--primary-color-1-saturation) - 100%),
|
||||||
|
calc(var(--primary-color-1-lightness) + 100%));
|
||||||
|
|
||||||
|
--button-primary-color-hover:
|
||||||
|
hsl(44.5,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 2%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 10%));
|
||||||
|
|
||||||
|
--button-primary-border-hover:
|
||||||
|
hsl(44.5,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 2%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 10%));
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------active--------- */
|
||||||
|
--button-primary-text-active:
|
||||||
|
hsl(44.5,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 100%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) + 100%));
|
||||||
|
|
||||||
|
--button-primary-color-active:
|
||||||
|
hsl(44.5,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 10%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 15%));
|
||||||
|
|
||||||
|
--button-primary-border-active:
|
||||||
|
hsl(44.5,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 2%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) + 10%));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------- SECONDARY BUTTONS -------------- */
|
||||||
|
/* these should NOT immediately catch the eye */
|
||||||
|
--button-secondary-text: var(--secondary-color-1);
|
||||||
|
--button-secondary-color: var(--primary-color-3);
|
||||||
|
--button-secondary-border: var(--primary-color-3);
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------hover---------- */
|
||||||
|
--button-secondary-text-hover:
|
||||||
|
hsl(44.5,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 20%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 80%));
|
||||||
|
|
||||||
|
--button-secondary-color-hover: var(--primary-color-4);
|
||||||
|
--button-secondary-border-hover: var(--primary-color-4);
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------active--------- */
|
||||||
|
--button-secondary-text-active: var(--secondary-color-1);
|
||||||
|
|
||||||
|
--button-secondary-color-active:
|
||||||
|
hsl(201,
|
||||||
|
calc(var(--primary-color-4-saturation) - 30%),
|
||||||
|
calc(var(--primary-color-4-lightness) - 15%));
|
||||||
|
|
||||||
|
--button-secondary-border-active:
|
||||||
|
hsl(201,
|
||||||
|
calc(var(--primary-color-4-saturation) - 30%),
|
||||||
|
calc(var(--primary-color-4-lightness) - 15%));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------- TERTIARY BUTTONS --------------- */
|
||||||
|
/* ---------- disabled buttons --------------- */
|
||||||
|
--button-tertiary-text: var(--primary-color-4);
|
||||||
|
--button-tertiary-color: var(--primary-color-2);
|
||||||
|
--button-tertiary-border: var(--primary-color-2);
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------hover---------- */
|
||||||
|
--button-tertiary-text: var(--primary-color-4);
|
||||||
|
--button-tertiary-color: var(--primary-color-2);
|
||||||
|
--button-tertiary-border: var(--primary-color-2);
|
||||||
|
|
||||||
|
}
|
214
examples/server/public/theme-mangotango.css
Normal file
214
examples/server/public/theme-mangotango.css
Normal file
|
@ -0,0 +1,214 @@
|
||||||
|
/* Author: Yazan Agha-Schrader */
|
||||||
|
/* Inspiration from llama.cpp logo/banner https://github.com/ggerganov/llama.cpp#readme */
|
||||||
|
|
||||||
|
.theme-mangotango {
|
||||||
|
|
||||||
|
--primary-color-1: hsl(192, 8.5%, 11.6%);
|
||||||
|
--primary-color-2: hsl(192, 8.5%, 21%);
|
||||||
|
--primary-color-3: hsl(192, 8.5%, 30%);
|
||||||
|
--primary-color-4: hsl(192, 8.5%, 40%);
|
||||||
|
|
||||||
|
--secondary-color-1: hsl(192, 8.5%, 80%);
|
||||||
|
--secondary-color-2: hsl(192, 8.5%, 73%);
|
||||||
|
--secondary-color-3: hsl(192, 8.5%, 66%);
|
||||||
|
--secondary-color-4: hsl(192, 8.5%, 60%);
|
||||||
|
|
||||||
|
--theme-nuance-color-1: hsl(23.1, 100%, 60.2%);
|
||||||
|
--theme-nuance-color-2: hsl(23.1, 100%, 60.2%);
|
||||||
|
--theme-nuance-color-3: hsl(23.1, 100%, 60.2%);
|
||||||
|
--theme-nuance-color-4: hsl(23.1, 100%, 60.2%);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------- PRIMARY COLORS ----------------- */
|
||||||
|
--primary-color-1: hsl(192, 8.5%, 11.6%);
|
||||||
|
--primary-color-1-saturation: 8.5%;
|
||||||
|
--primary-color-1-lightness: 11.6%;
|
||||||
|
|
||||||
|
--primary-color-2: hsl(192, 8.5%, 21%);
|
||||||
|
--primary-color-2-saturation: 8.5%;
|
||||||
|
--primary-color-2-lightness: 21%;
|
||||||
|
|
||||||
|
--primary-color-3: hsl(192, 8.5%, 30%);
|
||||||
|
--primary-color-3-saturation: 8.5%;
|
||||||
|
--primary-color-3-lightness: 30%;
|
||||||
|
|
||||||
|
--primary-color-4: hsl(192, 8.5%, 40%);
|
||||||
|
--primary-color-4-saturation: 8.5%;
|
||||||
|
--primary-color-4-lightness: 40%;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------- SECONDARY COLORS --------------- */
|
||||||
|
--secondary-color-1: hsl(192, 8.5%, 80%);
|
||||||
|
--secondary-color-1-saturation: 8.5%;
|
||||||
|
--secondary-color-1-lightness: 80%;
|
||||||
|
|
||||||
|
--secondary-color-2: hsl(192, 8.5%, 73%);
|
||||||
|
--secondary-color-2-saturation: 8.5%;
|
||||||
|
--secondary-color-2-lightness: 73%;
|
||||||
|
|
||||||
|
--secondary-color-3: hsl(192, 8.5%, 66%);
|
||||||
|
--secondary-color-3-saturation: 8.5%;
|
||||||
|
--secondary-color-3-lightness: 66%;
|
||||||
|
|
||||||
|
--secondary-color-4: hsl(192, 8.5%, 60%);
|
||||||
|
--secondary-color-4-saturation: 8.5%;
|
||||||
|
--secondary-color-4-lightness: 60%;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ----------- NUANCES COLORS ---------------- */
|
||||||
|
--theme-nuance-color-1: hsl(23.1, 100%, 60.2%);
|
||||||
|
--theme-nuance-color-1-saturation: 100%;
|
||||||
|
--theme-nuance-color-1-lightness: 60.2%;
|
||||||
|
|
||||||
|
--theme-nuance-color-2: hsl(23.1, 100%, 60.2%);
|
||||||
|
--theme-nuance-color-2-saturation: 100%;
|
||||||
|
--theme-nuance-color-2-lightness: 60.2%;
|
||||||
|
|
||||||
|
--theme-nuance-color-3: hsl(23.1, 100%, 60.2%);
|
||||||
|
--theme-nuance-color-3-saturation: 100%;
|
||||||
|
--theme-nuance-color-3-lightness: 60.2%;
|
||||||
|
|
||||||
|
--theme-nuance-color-4: hsl(23.1, 100%, 60.2%);
|
||||||
|
--theme-nuance-color-4-saturation: 100%;
|
||||||
|
--theme-nuance-color-4-lightness: 60.2%;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ----------- ROYGP COLORS ------------------ */
|
||||||
|
--theme-red-color: hsl(325, 60%, 50%);
|
||||||
|
--theme-orange-color: #e76f51;
|
||||||
|
--theme-yellow-color: #ffd95f;
|
||||||
|
--theme-green-color: #A3BE8C;
|
||||||
|
--theme-blue-color: hsl(192, 95%, 40%);
|
||||||
|
--theme-purple-color: hsl(192, 80%, 35%);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ------------------------------------------- */
|
||||||
|
--background-color-1: var(--primary-color-1);
|
||||||
|
--background-color-2: var(--primary-color-2);
|
||||||
|
--background-color-3: var(--primary-color-3);
|
||||||
|
--background-color-4: var(--primary-color-4);
|
||||||
|
|
||||||
|
--border-color-1: var(--primary-color-2);
|
||||||
|
--border-color-2: var(--primary-color-3);
|
||||||
|
--border-color-3: var(--primary-color-4);
|
||||||
|
|
||||||
|
--border-focus-color: var(--theme-nuance-color-2);
|
||||||
|
--border-focus-shadow: var(--theme-nuance-color-1);
|
||||||
|
|
||||||
|
--text-color-plain: var(--secondary-color-1);
|
||||||
|
--text-color-subtile-1: var(--secondary-color-2);
|
||||||
|
--text-color-subtile-2: var(--secondary-color-3);
|
||||||
|
|
||||||
|
--code-background-color: var(--secondary-color-2);
|
||||||
|
--code-text-color: var(--primary-color-2);
|
||||||
|
|
||||||
|
--ui-range-thumb-color: var(--theme-nuance-color-3);
|
||||||
|
--ui-range-thumb-border: var(--ui-ranger-thumb-color);
|
||||||
|
|
||||||
|
--textarea-border-color: var(--secondary-color-4);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ------------------------------------------- */
|
||||||
|
--button-alert-text-hover: var(--secondary-color-1);
|
||||||
|
--button-alert-color-hover: var(--theme-purple-color);
|
||||||
|
--button-alert-border-hover: var(--theme-purple-color);
|
||||||
|
|
||||||
|
--button-alert-text-active: var(--secondary-color-1);
|
||||||
|
--button-alert-color-active: var(--theme-blue-color);
|
||||||
|
--button-alert-border-active: var(--theme-blue-color);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ----------- PRIMARY BUTTONS --------------- */
|
||||||
|
/* - button should immediately catch the eye - */
|
||||||
|
--button-primary-text: var(--primary-color-1);
|
||||||
|
--button-primary-color: var(--theme-nuance-color-3);
|
||||||
|
--button-primary-border: var(--theme-nuance-color-3);
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------hover---------- */
|
||||||
|
--button-primary-text-hover:
|
||||||
|
hsl(192,
|
||||||
|
calc(var(--primary-color-1-saturation) - 100%),
|
||||||
|
calc(var(--primary-color-1-lightness) + 100%));
|
||||||
|
|
||||||
|
--button-primary-color-hover:
|
||||||
|
hsl(23.1,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 2%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 10%));
|
||||||
|
|
||||||
|
--button-primary-border-hover:
|
||||||
|
hsl(23.1,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 2%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 10%));
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------active--------- */
|
||||||
|
--button-primary-text-active:
|
||||||
|
hsl(23.1,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 100%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) + 100%));
|
||||||
|
|
||||||
|
--button-primary-color-active:
|
||||||
|
hsl(23.1,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 10%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 15%));
|
||||||
|
|
||||||
|
--button-primary-border-active:
|
||||||
|
hsl(23.1,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 2%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) + 10%));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------- SECONDARY BUTTONS -------------- */
|
||||||
|
/* these should NOT immediately catch the eye */
|
||||||
|
--button-secondary-text: var(--secondary-color-1);
|
||||||
|
--button-secondary-color: var(--primary-color-3);
|
||||||
|
--button-secondary-border: var(--primary-color-3);
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------hover---------- */
|
||||||
|
--button-secondary-text-hover:
|
||||||
|
hsl(23.1,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 20%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 80%));
|
||||||
|
|
||||||
|
--button-secondary-color-hover: var(--primary-color-4);
|
||||||
|
--button-secondary-border-hover: var(--primary-color-4);
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------active--------- */
|
||||||
|
--button-secondary-text-active: var(--secondary-color-1);
|
||||||
|
|
||||||
|
--button-secondary-color-active:
|
||||||
|
hsl(192,
|
||||||
|
calc(var(--primary-color-4-saturation) - 30%),
|
||||||
|
calc(var(--primary-color-4-lightness) - 15%));
|
||||||
|
|
||||||
|
--button-secondary-border-active:
|
||||||
|
hsl(192,
|
||||||
|
calc(var(--primary-color-4-saturation) - 30%),
|
||||||
|
calc(var(--primary-color-4-lightness) - 15%));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------- TERTIARY BUTTONS --------------- */
|
||||||
|
/* ---------- disabled buttons --------------- */
|
||||||
|
--button-tertiary-text: var(--primary-color-4);
|
||||||
|
--button-tertiary-color: var(--primary-color-2);
|
||||||
|
--button-tertiary-border: var(--primary-color-2);
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------hover---------- */
|
||||||
|
--button-tertiary-text: var(--primary-color-4);
|
||||||
|
--button-tertiary-color: var(--primary-color-2);
|
||||||
|
--button-tertiary-border: var(--primary-color-2);
|
||||||
|
|
||||||
|
}
|
219
examples/server/public/theme-playground.css
Normal file
219
examples/server/public/theme-playground.css
Normal file
|
@ -0,0 +1,219 @@
|
||||||
|
/* Author: Yazan Agha-Schrader */
|
||||||
|
/* Inspiration from OpenAI's Playground platform https://platform.openai.com/playground/ */
|
||||||
|
|
||||||
|
.theme-playground {
|
||||||
|
|
||||||
|
/* ---------- PRIMARY COLORS ----------------- */
|
||||||
|
--primary-color-1: hsl(0, 0%, 99.2%);
|
||||||
|
--primary-color-1-hue: 0;
|
||||||
|
--primary-color-1-saturation: 0%;
|
||||||
|
--primary-color-1-lightness: 99.2%;
|
||||||
|
|
||||||
|
--primary-color-2: hsl(0, 0%, 95%);
|
||||||
|
--primary-color-2-hue: 0;
|
||||||
|
--primary-color-2-saturation: 0%;
|
||||||
|
--primary-color-2-lightness: 95%;
|
||||||
|
|
||||||
|
--primary-color-3: hsl(0, 0%, 88%);
|
||||||
|
--primary-color-3-hue: 0;
|
||||||
|
--primary-color-3-saturation: 0%;
|
||||||
|
--primary-color-3-lightness: 88%;
|
||||||
|
|
||||||
|
--primary-color-4: hsl(0, 0%, 80%);
|
||||||
|
--primary-color-4-hue: 0;
|
||||||
|
--primary-color-4-saturation: 0%;
|
||||||
|
--primary-color-4-lightness: 80%;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------- SECONDARY COLORS --------------- */
|
||||||
|
--secondary-color-1: hsl(0, 0%, 20%);
|
||||||
|
--secondary-color-1-hue: 0;
|
||||||
|
--secondary-color-1-saturation: 0%;
|
||||||
|
--secondary-color-1-lightness: 20%;
|
||||||
|
|
||||||
|
--secondary-color-2: hsl(0, 0%, 23.1%);
|
||||||
|
--secondary-color-2-hue: 0;
|
||||||
|
--secondary-color-2-saturation: 0%;
|
||||||
|
--secondary-color-2-lightness: 23.1%;
|
||||||
|
|
||||||
|
--secondary-color-3: hsl(0, 0%, 29%);
|
||||||
|
--secondary-color-3-hue: 0;
|
||||||
|
--secondary-color-3-saturation: 0%;
|
||||||
|
--secondary-color-3-lightness: 29%;
|
||||||
|
|
||||||
|
--secondary-color-4: hsl(0, 0%, 36.1%);
|
||||||
|
--secondary-color-4-hue: 0;
|
||||||
|
--secondary-color-4-saturation: 0%;
|
||||||
|
--secondary-color-4-lightness: 36.1%;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ----------- NUANCES COLORS ---------------- */
|
||||||
|
--theme-nuance-color-1: hsl(165.2, 82.1%, 35.1%);
|
||||||
|
--theme-nuance-color-1-hue: 165.2;
|
||||||
|
--theme-nuance-color-1-saturation: 82.1%;
|
||||||
|
--theme-nuance-color-1-lightness: 35.1%;
|
||||||
|
|
||||||
|
--theme-nuance-color-2: hsl(165.2, 82.1%, 35.1%);
|
||||||
|
--theme-nuance-color-2-hue: 165.2;
|
||||||
|
--theme-nuance-color-2-saturation: 82.1%;
|
||||||
|
--theme-nuance-color-2-lightness: 35.1%;
|
||||||
|
|
||||||
|
--theme-nuance-color-3: hsl(165.2, 81.1%, 35.3%);
|
||||||
|
--theme-nuance-color-3-hue: 165.2;
|
||||||
|
--theme-nuance-color-3-saturation: 81.1%;
|
||||||
|
--theme-nuance-color-3-lightness: 35.3%;
|
||||||
|
|
||||||
|
--theme-nuance-color-4: hsl(164.9, 81.6%, 27.6%);
|
||||||
|
--theme-nuance-color-4-hue: 164.9;
|
||||||
|
--theme-nuance-color-4-saturation: 81.6%;
|
||||||
|
--theme-nuance-color-4-lightness: 27.6%;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ----------- ROYGP COLORS ------------------ */
|
||||||
|
--theme-red-color: hsl(0.3, 80%, 50%);
|
||||||
|
--theme-orange-color: #e76f51;
|
||||||
|
--theme-yellow-color: hsl(60, 70.6%, 73.3%);
|
||||||
|
--theme-green-color: #A3BE8C;
|
||||||
|
--theme-purple-color: hsl(0.3, 70%, 45%);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ------------------------------------------- */
|
||||||
|
--background-color-1: var(--primary-color-1);
|
||||||
|
--background-color-2: var(--primary-color-2);
|
||||||
|
--background-color-3: var(--primary-color-3);
|
||||||
|
--background-color-4: var(--primary-color-4);
|
||||||
|
|
||||||
|
--border-color-1: var(--primary-color-2);
|
||||||
|
--border-color-2: var(--primary-color-3);
|
||||||
|
--border-color-3: var(--primary-color-4);
|
||||||
|
|
||||||
|
--border-focus-color: var(--theme-nuance-color-2);
|
||||||
|
--border-focus-shadow: var(--theme-nuance-color-1);
|
||||||
|
|
||||||
|
--text-color-plain: var(--secondary-color-1);
|
||||||
|
--text-color-subtile-1: var(--secondary-color-2);
|
||||||
|
--text-color-subtile-2: var(--secondary-color-3);
|
||||||
|
|
||||||
|
--code-background-color: var(--secondary-color-2);
|
||||||
|
--code-text-color: var(--primary-color-2);
|
||||||
|
|
||||||
|
--ui-range-thumb-color: var(--primary-color-4);
|
||||||
|
--ui-range-thumb-border: var(--ui-ranger-thumb-color);
|
||||||
|
|
||||||
|
--textarea-border-color: var(--secondary-color-4);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ------------------------------------------- */
|
||||||
|
--button-alert-text-hover: var(--primary-color-1);
|
||||||
|
--button-alert-color-hover: var(--theme-purple-color);
|
||||||
|
--button-alert-border-hover: var(--theme-purple-color);
|
||||||
|
|
||||||
|
--button-alert-text-active: var(--primary-color-1);
|
||||||
|
--button-alert-color-active: var(--theme-red-color);
|
||||||
|
--button-alert-border-active: var(--theme-red-color);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ----------- PRIMARY BUTTONS --------------- */
|
||||||
|
/* - button should immediately catch the eye - */
|
||||||
|
--button-primary-text:
|
||||||
|
hsl(0,
|
||||||
|
calc(var(--primary-color-1-saturation) - 100%),
|
||||||
|
calc(var(--primary-color-1-lightness) + 100%));
|
||||||
|
|
||||||
|
--button-primary-color: var(--theme-nuance-color-3);
|
||||||
|
--button-primary-border: var(--theme-nuance-color-3);
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------hover---------- */
|
||||||
|
--button-primary-text-hover:
|
||||||
|
hsl(0,
|
||||||
|
calc(var(--primary-color-1-saturation) - 100%),
|
||||||
|
calc(var(--primary-color-1-lightness) + 100%));
|
||||||
|
|
||||||
|
--button-primary-color-hover:
|
||||||
|
hsl(165.2,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 2%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 10%));
|
||||||
|
|
||||||
|
--button-primary-border-hover:
|
||||||
|
hsl(165.2,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 2%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 10%));
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------active--------- */
|
||||||
|
--button-primary-text-active:
|
||||||
|
hsl(165.2,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 100%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) + 100%));
|
||||||
|
|
||||||
|
--button-primary-color-active:
|
||||||
|
hsl(165.2,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 10%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 15%));
|
||||||
|
|
||||||
|
--button-primary-border-active:
|
||||||
|
hsl(165.2,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 2%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) + 10%));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------- SECONDARY BUTTONS -------------- */
|
||||||
|
/* these should NOT immediately catch the eye */
|
||||||
|
--button-secondary-text:
|
||||||
|
hsl(165.2,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 20%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 50%));
|
||||||
|
|
||||||
|
--button-secondary-color: var(--primary-color-3);
|
||||||
|
--button-secondary-border: var(--primary-color-3);
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------hover---------- */
|
||||||
|
--button-secondary-text-hover:
|
||||||
|
hsl(165.2,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 20%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 80%));
|
||||||
|
|
||||||
|
--button-secondary-color-hover: var(--primary-color-4);
|
||||||
|
--button-secondary-border-hover: var(--primary-color-4);
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------active--------- */
|
||||||
|
--button-secondary-text-active:
|
||||||
|
hsl(165.2,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 20%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 80%));
|
||||||
|
|
||||||
|
--button-secondary-color-active:
|
||||||
|
hsl(0,
|
||||||
|
calc(var(--primary-color-4-saturation) - 30%),
|
||||||
|
calc(var(--primary-color-4-lightness) - 15%));
|
||||||
|
|
||||||
|
--button-secondary-border-active:
|
||||||
|
hsl(0,
|
||||||
|
calc(var(--primary-color-4-saturation) - 30%),
|
||||||
|
calc(var(--primary-color-4-lightness) - 15%));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------- TERTIARY BUTTONS --------------- */
|
||||||
|
/* ---------- disabled buttons --------------- */
|
||||||
|
--button-tertiary-text: var(--primary-color-4);
|
||||||
|
--button-tertiary-color: var(--primary-color-2);
|
||||||
|
--button-tertiary-border: var(--primary-color-2);
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------hover---------- */
|
||||||
|
--button-tertiary-text: var(--primary-color-4);
|
||||||
|
--button-tertiary-color: var(--primary-color-2);
|
||||||
|
--button-tertiary-border: var(--primary-color-2);
|
||||||
|
|
||||||
|
}
|
251
examples/server/public/theme-polarnight.css
Normal file
251
examples/server/public/theme-polarnight.css
Normal file
|
@ -0,0 +1,251 @@
|
||||||
|
/* Author: Yazan Agha-Schrader */
|
||||||
|
/* Inspiration from Nord Theme https://www.nordtheme.com/docs/colors-and-palettes */
|
||||||
|
|
||||||
|
.theme-polarnight {
|
||||||
|
|
||||||
|
/* ---------- PRIMARY COLORS ----------------- */
|
||||||
|
--primary-color-1: hsl(220.0, 16.4%, 21.6%) ;
|
||||||
|
--primary-color-1-hue: 220.0;
|
||||||
|
--primary-color-1-saturation: 16.4%;
|
||||||
|
--primary-color-1-lightness: 21.6%;
|
||||||
|
|
||||||
|
--primary-color-2: hsl(221.7, 16.3%, 27.6%) ;
|
||||||
|
-primary-color-2-hue: 221.7;
|
||||||
|
--primary-color-2-saturation: 16.3%;
|
||||||
|
--primary-color-2-lightness: 27.6%;
|
||||||
|
|
||||||
|
--primary-color-3: hsl(220.0, 16.8%, 31.6%) ;
|
||||||
|
--primary-color-3-hue: 220.0;
|
||||||
|
--primary-color-3-saturation: 16.8%;
|
||||||
|
--primary-color-3-lightness: 31.6%;
|
||||||
|
|
||||||
|
--primary-color-4: hsl(220.0, 16.5%, 35.7%);
|
||||||
|
--primary-color-4-hue: 220.0;
|
||||||
|
--primary-color-4-saturation: 16.5%;
|
||||||
|
--primary-color-4-lightness: 35.7%;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------- SECONDARY COLORS --------------- */
|
||||||
|
--secondary-color-1: hsl(217.5, 26.7%, 94.1%);
|
||||||
|
--secondary-color-1-hue: 217.5;
|
||||||
|
--secondary-color-1-saturation: 26.7%;
|
||||||
|
--secondary-color-1-lightness: 94.1%;
|
||||||
|
|
||||||
|
--secondary-color-2: hsl(218.2, 26.8%, 92.0%);
|
||||||
|
--secondary-color-2-hue: 218.2;
|
||||||
|
--secondary-color-2-saturation: 26.8%;
|
||||||
|
--secondary-color-2-lightness: 92.0%;
|
||||||
|
|
||||||
|
--secondary-color-3: hsl(218.8, 27.9%, 88.0%);
|
||||||
|
--secondary-color-3-hue: 218.8;
|
||||||
|
--secondary-color-3-saturation: 27.9%;
|
||||||
|
--secondary-color-3-lightness: 88.0%;
|
||||||
|
|
||||||
|
--secondary-color-4: hsl(218.8, 18.3%, 81.8%);
|
||||||
|
--secondary-color-4-hue: 218.8;
|
||||||
|
--secondary-color-4-saturation: 18.3%;
|
||||||
|
--secondary-color-4-lightness: 81.8%;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ----------- NUANCES COLORS ---------------- */
|
||||||
|
--theme-nuance-color-1: hsl(178.7, 25.1%, 64.9%);
|
||||||
|
--theme-nuance-color-1-hue: 178.7;
|
||||||
|
--theme-nuance-color-1-saturation: 25.1%;
|
||||||
|
--theme-nuance-color-1-lightness: 64.9%;
|
||||||
|
|
||||||
|
--theme-nuance-color-2: hsl(193.3, 43.4%, 67.5%);
|
||||||
|
--theme-nuance-color-2-hue: 193.3;
|
||||||
|
--theme-nuance-color-2-saturation: 43.4%;
|
||||||
|
--theme-nuance-color-2-lightness: 67.5%;
|
||||||
|
|
||||||
|
--theme-nuance-color-3: hsl(210.0, 34.0%, 63.1%);
|
||||||
|
--theme-nuance-color-3-hue: 210.0;
|
||||||
|
--theme-nuance-color-3-saturation: 34.0%;
|
||||||
|
--theme-nuance-color-3-lightness: 63.1%;
|
||||||
|
|
||||||
|
--theme-nuance-color-4: hsl(213.1, 32.0%, 52.2%);
|
||||||
|
--theme-nuance-color-4-hue: 213.1;
|
||||||
|
--theme-nuance-color-4-saturation: 32.0%;
|
||||||
|
--theme-nuance-color-4-lightness: 52.2%;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ----------- ROYGP COLORS ------------------ */
|
||||||
|
--theme-red-color: hsl(354.3, 42.3%, 56.5%);
|
||||||
|
--theme-orange-color: hsl(20, 85%, 50%);
|
||||||
|
--theme-yellow-color: hsl(20, 75%, 45%);
|
||||||
|
--theme-green-color: hsl( 92.4, 27.8%, 64.7%);
|
||||||
|
--theme-purple-color: hsl(311.1, 20.2%, 63.1%);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ------------------------------------------------ */
|
||||||
|
--background-color-1: var(--primary-color-1);
|
||||||
|
--background-color-2: var(--primary-color-2);
|
||||||
|
--background-color-3: var(--primary-color-3);
|
||||||
|
--background-color-4: var(--primary-color-4);
|
||||||
|
|
||||||
|
--border-color-1: var(--primary-color-2);
|
||||||
|
--border-color-2: var(--primary-color-3);
|
||||||
|
--border-color-3: var(--primary-color-4);
|
||||||
|
|
||||||
|
--border-focus-color: var(--theme-nuance-color-2);
|
||||||
|
--border-focus-shadow: var(--theme-nuance-color-1);
|
||||||
|
|
||||||
|
--text-color-plain: var(--secondary-color-1);
|
||||||
|
--text-color-subtile-1: var(--secondary-color-2);
|
||||||
|
--text-color-subtile-2: var(--secondary-color-3);
|
||||||
|
|
||||||
|
--code-background-color: var(--secondary-color-2);
|
||||||
|
--code-text-color: var(--primary-color-2);
|
||||||
|
|
||||||
|
--ui-range-thumb-color: var(--theme-nuance-color-3);
|
||||||
|
--ui-range-thumb-border: var(--ui-ranger-thumb-color);
|
||||||
|
|
||||||
|
--textarea-border-color: var(--secondary-color-4);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ------------------------------------------- */
|
||||||
|
--button-alert-text-hover: var(--secondary-color-1);
|
||||||
|
--button-alert-color-hover: var(--theme-yellow-color);
|
||||||
|
--button-alert-border-hover: var(--theme-yellow-color);
|
||||||
|
|
||||||
|
--button-alert-text-active: var(--secondary-color-1);
|
||||||
|
--button-alert-color-active: var(--theme-orange-color);
|
||||||
|
--button-alert-border-active: var(--theme-orange-color);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ----------- PRIMARY BUTTONS --------------- */
|
||||||
|
/* - button should immediately catch the eye - */
|
||||||
|
--button-primary-text: var(--secondary-color-1);
|
||||||
|
--button-primary-color: var(--theme-nuance-color-3);
|
||||||
|
--button-primary-border: var(--theme-nuance-color-3);
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------hover---------- */
|
||||||
|
--button-primary-text-hover:
|
||||||
|
hsl(217.5,
|
||||||
|
calc(var(--secondary-color-1-saturation) - 35%),
|
||||||
|
calc(var(--secondary-color-1-lightness) + 30%));
|
||||||
|
|
||||||
|
--button-primary-color-hover:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 2%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 10%));
|
||||||
|
|
||||||
|
--button-primary-border-hover:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 2%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 10%));
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------active--------- */
|
||||||
|
--button-primary-text-active:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 20%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) + 35%));
|
||||||
|
|
||||||
|
--button-primary-color-active:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 10%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 25%));
|
||||||
|
|
||||||
|
--button-primary-border-active:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 10%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 25%));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------- SECONDARY BUTTONS -------------- */
|
||||||
|
/* these should NOT immediately catch the eye */
|
||||||
|
--button-secondary-text:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 20%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 50%));
|
||||||
|
|
||||||
|
--button-secondary-color:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 20%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) + 10%));
|
||||||
|
|
||||||
|
--button-secondary-border:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 20%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) + 10%));
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------hover---------- */
|
||||||
|
--button-secondary-text-hover:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 20%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 80%));
|
||||||
|
|
||||||
|
--button-secondary-color-hover:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 22%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) + 1%));
|
||||||
|
|
||||||
|
--button-secondary-border-hover:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 22%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) + 1%));
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------active--------- */
|
||||||
|
--button-secondary-text-active:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 20%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) + 25%));
|
||||||
|
|
||||||
|
--button-secondary-color-active:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 30%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 15%));
|
||||||
|
|
||||||
|
--button-secondary-border-active:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 30%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 15%));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------- TERTIARY BUTTONS --------------- */
|
||||||
|
/* ---------- disabled buttons --------------- */
|
||||||
|
--button-tertiary-text:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 40%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 5%));
|
||||||
|
|
||||||
|
--button-tertiary-color:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 40%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) + 20%));
|
||||||
|
|
||||||
|
--button-tertiary-border:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 40%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) + 20%));
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------hover---------- */
|
||||||
|
--button-tertiary-text-hover:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 40%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 5%));
|
||||||
|
|
||||||
|
--button-tertiary-color-hover:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 40%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) + 20%));
|
||||||
|
|
||||||
|
--button-tertiary-border-hover:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 40%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) + 20%));
|
||||||
|
|
||||||
|
}
|
249
examples/server/public/theme-snowstorm.css
Normal file
249
examples/server/public/theme-snowstorm.css
Normal file
|
@ -0,0 +1,249 @@
|
||||||
|
/* Author: Yazan Agha-Schrader */
|
||||||
|
/* Inspiration from Nord Theme https://www.nordtheme.com/docs/colors-and-palettes */
|
||||||
|
|
||||||
|
.theme-snowstorm {
|
||||||
|
|
||||||
|
/* ---------- PRIMARY COLORS ----------------- */
|
||||||
|
--primary-color-1: hsl(217.5, 26.7%, 94.1%);
|
||||||
|
--primary-color-1-hue: 217.5;
|
||||||
|
--primary-color-1-saturation: 26.7%;
|
||||||
|
--primary-color-1-lightness: 94.1%;
|
||||||
|
|
||||||
|
--primary-color-2: hsl(218.2, 26.8%, 92.0%);
|
||||||
|
--primary-color-2-hue: 218.2;
|
||||||
|
--primary-color-2-saturation: 26.8%;
|
||||||
|
--primary-color-2-lightness: 92.0%;
|
||||||
|
|
||||||
|
--primary-color-3: hsl(218.8, 27.9%, 88.0%);
|
||||||
|
--primary-color-3-hue: 218.8;
|
||||||
|
--primary-color-3-saturation: 27.9%;
|
||||||
|
--primary-color-3-lightness: 88.0%;
|
||||||
|
|
||||||
|
--primary-color-4: hsl(218.8, 18.3%, 81.8%);
|
||||||
|
--primary-color-4-hue: 218.8;
|
||||||
|
--primary-color-4-saturation: 18.3%;
|
||||||
|
--primary-color-4-lightness: 81.8%;
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------- SECONDARY COLORS --------------- */
|
||||||
|
--secondary-color-1: hsl(220.0, 16.4%, 21.6%);
|
||||||
|
--secondary-color-1-hue: 220.0;
|
||||||
|
--secondary-color-1-saturation: 16.4%;
|
||||||
|
--secondary-color-1-lightness: 21.6%;
|
||||||
|
|
||||||
|
--secondary-color-2: hsl(221.7, 16.3%, 27.6%);
|
||||||
|
--secondary-color-2-hue: 221.7;
|
||||||
|
--secondary-color-2-saturation: 16.3%;
|
||||||
|
--secondary-color-2-lightness: 27.6%;
|
||||||
|
|
||||||
|
--secondary-color-3: hsl(220.0, 16.8%, 31.6%);
|
||||||
|
--secondary-color-3-hue: 220.0;
|
||||||
|
--secondary-color-3-saturation: 16.8%;
|
||||||
|
--secondary-color-3-lightness: 31.6%;
|
||||||
|
|
||||||
|
--secondary-color-4: hsl(220.0, 16.5%, 35.7%);
|
||||||
|
--secondary-color-4-hue: 220.0;
|
||||||
|
--secondary-color-4-saturation: 16.5%;
|
||||||
|
--secondary-color-4-lightness: 35.7%;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ----------- NUANCES COLORS ---------------- */
|
||||||
|
--theme-nuance-color-1: hsl(178.7, 25.1%, 64.9%);
|
||||||
|
--theme-nuance-color-1-hue: 178.7;
|
||||||
|
--theme-nuance-color-1-saturation: 25.1%;
|
||||||
|
--theme-nuance-color-1-lightness: 64.9%;
|
||||||
|
|
||||||
|
--theme-nuance-color-2: hsl(193.3, 43.4%, 67.5%);
|
||||||
|
--theme-nuance-color-2-hue: 193.3;
|
||||||
|
--theme-nuance-color-2-saturation: 43.4%;
|
||||||
|
--theme-nuance-color-2-lightness: 67.5%;
|
||||||
|
|
||||||
|
--theme-nuance-color-3: hsl(210.0, 34.0%, 63.1%);
|
||||||
|
--theme-nuance-color-3-hue: 210.0;
|
||||||
|
--theme-nuance-color-3-saturation: 34.0%;
|
||||||
|
--theme-nuance-color-3-lightness: 63.1%;
|
||||||
|
|
||||||
|
--theme-nuance-color-4: hsl(213.1, 32.0%, 52.2%);
|
||||||
|
--theme-nuance-color-4-hue: 213.1;
|
||||||
|
--theme-nuance-color-4-saturation: 32.0%;
|
||||||
|
--theme-nuance-color-4-lightness: 52.2%;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ----------- ROYGP COLORS ------------------ */
|
||||||
|
--theme-red-color: hsl(32.5, 80%, 50%);
|
||||||
|
--theme-orange-color: hsl(32.5, 70%, 45%);
|
||||||
|
--theme-yellow-color: hsl(40.0, 0.6%, 73.3%);
|
||||||
|
--theme-green-color: hsl(92.4, 27.8%, 64.7%);
|
||||||
|
--theme-purple-color: hsl(311.1, 20.2%, 63.1%);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ------------------------------------------- */
|
||||||
|
--background-color-1: var(--primary-color-1);
|
||||||
|
--background-color-2: var(--primary-color-2);
|
||||||
|
--background-color-3: var(--primary-color-3);
|
||||||
|
--background-color-4: var(--primary-color-4);
|
||||||
|
|
||||||
|
--border-color-1: var(--primary-color-2);
|
||||||
|
--border-color-2: var(--primary-color-3);
|
||||||
|
--border-color-3: var(--primary-color-4);
|
||||||
|
|
||||||
|
--border-focus-color: var(--theme-nuance-color-2);
|
||||||
|
--border-focus-shadow: var(--theme-nuance-color-1);
|
||||||
|
|
||||||
|
--text-color-plain: var(--secondary-color-1);
|
||||||
|
--text-color-subtile-1: var(--secondary-color-2);
|
||||||
|
--text-color-subtile-2: var(--secondary-color-3);
|
||||||
|
|
||||||
|
--code-background-color: var(--secondary-color-2);
|
||||||
|
--code-text-color: var(--primary-color-2);
|
||||||
|
|
||||||
|
--ui-range-thumb-color: var(--theme-nuance-color-3);
|
||||||
|
--ui-range-thumb-border: var(--ui-ranger-thumb-color);
|
||||||
|
|
||||||
|
--textarea-border-color: var(--secondary-color-4);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ------------------------------------------- */
|
||||||
|
--button-alert-text-hover: var(--primary-color-1);
|
||||||
|
--button-alert-color-hover: var(--theme-orange-color);
|
||||||
|
--button-alert-border-hover: var(--theme-orange-color);
|
||||||
|
|
||||||
|
--button-alert-text-active: var(--primary-color-1);
|
||||||
|
--button-alert-color-active: var(--theme-red-color);
|
||||||
|
--button-alert-border-active: var(--theme-red-color);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ----------- PRIMARY BUTTONS --------------- */
|
||||||
|
/* - button should immediately catch the eye - */
|
||||||
|
--button-primary-text: var(--secondary-color-1);
|
||||||
|
--button-primary-color: var(--theme-nuance-color-3);
|
||||||
|
--button-primary-border: var(--theme-nuance-color-3);
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------hover---------- */
|
||||||
|
--button-primary-text-hover:
|
||||||
|
hsl(217.5,
|
||||||
|
calc(var(--secondary-color-1-saturation) + 35%),
|
||||||
|
calc(var(--secondary-color-1-lightness) - 30%));
|
||||||
|
|
||||||
|
--button-primary-color-hover:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 2%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 10%));
|
||||||
|
|
||||||
|
--button-primary-border-hover:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 2%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 10%));
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------active--------- */
|
||||||
|
--button-primary-text-active:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 20%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) + 35%));
|
||||||
|
|
||||||
|
--button-primary-color-active:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 10%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 25%));
|
||||||
|
|
||||||
|
--button-primary-border-active:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 10%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 25%));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------- SECONDARY BUTTONS -------------- */
|
||||||
|
/* these should NOT immediately catch the eye */
|
||||||
|
--button-secondary-text:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 20%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 50%));
|
||||||
|
|
||||||
|
--button-secondary-color:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 20%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) + 10%));
|
||||||
|
|
||||||
|
--button-secondary-border:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 20%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) + 10%));
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------hover---------- */
|
||||||
|
--button-secondary-text-hover:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 20%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 80%));
|
||||||
|
|
||||||
|
--button-secondary-color-hover:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 22%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) + 1%));
|
||||||
|
|
||||||
|
--button-secondary-border-hover:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 22%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) + 1%));
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------active--------- */
|
||||||
|
--button-secondary-text-active:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) + 40%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 55%));
|
||||||
|
|
||||||
|
--button-secondary-color-active:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 30%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 5%));
|
||||||
|
|
||||||
|
--button-secondary-border-active:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 30%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 5%));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------- TERTIARY BUTTONS --------------- */
|
||||||
|
/* ---------- disabled buttons --------------- */
|
||||||
|
--button-tertiary-text:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 40%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 5%));
|
||||||
|
|
||||||
|
--button-tertiary-color:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 40%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) + 20%));
|
||||||
|
|
||||||
|
--button-tertiary-border:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 40%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) + 20%));
|
||||||
|
|
||||||
|
/* ---------hover---------- */
|
||||||
|
--button-tertiary-text-hover:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 40%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) - 5%));
|
||||||
|
|
||||||
|
--button-tertiary-color-hover:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 40%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) + 20%));
|
||||||
|
|
||||||
|
--button-tertiary-border-hover:
|
||||||
|
hsl(210,
|
||||||
|
calc(var(--theme-nuance-color-3-saturation) - 40%),
|
||||||
|
calc(var(--theme-nuance-color-3-lightness) + 20%));
|
||||||
|
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue