diff --git a/about.json b/about.json index fca008d..c1c35bf 100644 --- a/about.json +++ b/about.json @@ -9,5 +9,18 @@ "maximum_discourse_version": null, "assets": {}, "modifiers": {}, - "color_schemes": {} + "color_schemes": { + "next_gen": { + "primary": "1A1A1A", + "secondary": "F5F8FF", + "header_background": "F5F8FF", + "tertiary": "595bca" + }, + "next_gen_dark": { + "primary": "F5F8FF", + "secondary": "1A1A1A", + "header_background": "1A1A1A", + "tertiary": "595bca" + } + } } \ No newline at end of file diff --git a/assets/.gitkeep b/assets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/common/common.scss b/common/common.scss new file mode 100644 index 0000000..2c5c6a6 --- /dev/null +++ b/common/common.scss @@ -0,0 +1,15 @@ +@import "variables"; +@import "header"; +@import "sidebar"; +@import "main"; +@import "topic-cards"; +@import "search-banner"; +@import "nav-pills"; +@import "buttons"; + +.list-controls .combo-box .combo-box-header, +.select-kit.is-expanded .select-kit-body, +.discourse-post-event .discourse-post-event-widget { + background-color: light-dark(#ffffff, #000000); + border-radius: var(--d-input-border-radius); +} diff --git a/desktop/desktop.scss b/desktop/desktop.scss new file mode 100644 index 0000000..e69de29 diff --git a/javascripts/.gitkeep b/javascripts/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/javascripts/discourse/api-initializers/next-gen.js b/javascripts/discourse/api-initializers/next-gen.js new file mode 100644 index 0000000..b78f8da --- /dev/null +++ b/javascripts/discourse/api-initializers/next-gen.js @@ -0,0 +1,5 @@ +import { apiInitializer } from "discourse/lib/api"; + +export default apiInitializer("1.8.0", (/* api */) => { + // console.log("hello world from api initializer!"); +}); diff --git a/mobile/mobile.scss b/mobile/mobile.scss new file mode 100644 index 0000000..e69de29 diff --git a/scss/.gitkeep b/scss/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/scss/buttons.scss b/scss/buttons.scss new file mode 100644 index 0000000..eb7ccdb --- /dev/null +++ b/scss/buttons.scss @@ -0,0 +1,7 @@ +#create-topic.btn { + background-color: var(--accent-color); + color: var(--accent-text-color); + svg { + color: var(--accent-text-color); + } +} diff --git a/scss/header.scss b/scss/header.scss new file mode 100644 index 0000000..04d1461 --- /dev/null +++ b/scss/header.scss @@ -0,0 +1,3 @@ +.d-header { + box-shadow: none; +} diff --git a/scss/main.scss b/scss/main.scss new file mode 100644 index 0000000..128b86b --- /dev/null +++ b/scss/main.scss @@ -0,0 +1,30 @@ +#main-outlet-wrapper #main-outlet { + margin-top: 20px; + height: 85vh; + overflow: scroll; + padding: 16px 24px; + width: calc(100% - 48px); + max-width: 1000px; + background: radial-gradient( + 600px 600px at 50% 75%, + rgba(188, 241, 238, 0.2), + rgba(255, 255, 255, 0.2) + ), + radial-gradient( + 600px 600px at 75% 50%, + rgba(162, 165, 225, 0.2), + rgba(255, 255, 255, 0) + ); + background-color: light-dark(#ffffff, #000000); + border-radius: var(--d-border-radius-large); + border: 1px solid var(--primary-low); + box-shadow: 0 10px 24px 4px #e2e8f8, 0 0 0 2px #e2e8f8; +} + +.archetype-regular #main-outlet-wrapper #main-outlet { + background: light-dark(#ffffff, #000000); +} + +body.has-full-page-chat #main-outlet-wrapper #main-outlet { + max-width: 1000px; +} diff --git a/scss/nav-pills.scss b/scss/nav-pills.scss new file mode 100644 index 0000000..4dc8681 --- /dev/null +++ b/scss/nav-pills.scss @@ -0,0 +1,14 @@ +.nav-pills > li > a:hover, +.nav-pills > li button:hover { + background: transparent; + color: var(--accent-color); + &::after { + content: ""; + position: absolute; + left: 0; + bottom: 0; + right: 0; + height: var(--d-nav-underline-height); + background: var(--accent-color); + } +} diff --git a/scss/search-banner.scss b/scss/search-banner.scss new file mode 100644 index 0000000..0008d46 --- /dev/null +++ b/scss/search-banner.scss @@ -0,0 +1,47 @@ +.custom-search-banner-wrap { + display: grid; + grid-template-rows: 0.33fr 0.33fr 0.33fr; + grid-template-columns: 0.5fr 0.5fr; + grid-column-gap: 1em; + grid-row-gap: 0.5em; + border-bottom: 1px solid var(--primary-300); + padding: 2.5em 0 2.5em; + margin-bottom: 2.5em; + --search-color: #595bca; + h1 { + grid-column: 1/2; + grid-row: 1/-1; + padding: 0 1em; + text-align: left; + align-self: center; + margin: 0; + font-weight: 400; + color: #350c73; + } + .search-menu { + grid-column: 2/3; + grid-row: 1/-1; + width: 100%; + align-self: center; + } + p { + display: none; + } + .search-input { + background: light-dark(#ffffff, #1f1f1f); + border: 1px solid oklch(from var(--search-color) 80% calc(c * 2.5) h); + box-shadow: 0 4px 10px rgba(52, 6, 121, 15%); + } + .search-menu .search-input:focus-within, + .search-menu-container .search-input:focus-within { + border: 1px solid var(--search-color); + outline: 2px solid var(--search-color); + } + .search-menu .d-icon, + .search-menu .searching .d-icon { + color: var(--search-color); + } + .results { + background: light-dark(#ffffff, #1f1f1f); + } +} diff --git a/scss/sidebar.scss b/scss/sidebar.scss new file mode 100644 index 0000000..1f37ad8 --- /dev/null +++ b/scss/sidebar.scss @@ -0,0 +1,3 @@ +.sidebar-wrapper .sidebar-container { + border-right: none; +} diff --git a/scss/topic-cards.scss b/scss/topic-cards.scss new file mode 100644 index 0000000..c1a0ce5 --- /dev/null +++ b/scss/topic-cards.scss @@ -0,0 +1,7 @@ +.topic-list-item { + background: light-dark(#ffffff, #1f1f1f); + &:hover { + background: light-dark(#fcfcfc, #161616); + } + border: 1px solid #cedde3; +} diff --git a/scss/variables.scss b/scss/variables.scss new file mode 100644 index 0000000..ec46695 --- /dev/null +++ b/scss/variables.scss @@ -0,0 +1,8 @@ +:root { + --d-border-radius-large: 20px; + --d-border-radius: 8px; + --d-input-border-radius: 8px; + --accent-color: #595bca; + --accent-text-color: #ffffff; + --d-nav-color--active: var(--accent-color); +} diff --git a/spec/system/.gitkeep b/spec/system/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/test/acceptance/.gitkeep b/test/acceptance/.gitkeep new file mode 100644 index 0000000..e69de29