2023-03-31 17:19:07 +03:00
|
|
|
/** @file Configuration for Tailwind. */
|
|
|
|
import * as path from 'node:path'
|
|
|
|
import * as url from 'node:url'
|
|
|
|
|
|
|
|
// =================
|
|
|
|
// === Constants ===
|
|
|
|
// =================
|
|
|
|
|
|
|
|
const THIS_PATH = path.resolve(path.dirname(url.fileURLToPath(import.meta.url)))
|
|
|
|
|
|
|
|
// =====================
|
|
|
|
// === Configuration ===
|
|
|
|
// =====================
|
|
|
|
|
2023-06-19 02:02:08 +03:00
|
|
|
// The names come from a third-party API and cannot be changed.
|
2023-04-13 18:17:32 +03:00
|
|
|
/* eslint-disable no-restricted-syntax, @typescript-eslint/naming-convention */
|
2023-08-31 14:30:01 +03:00
|
|
|
export const content = [THIS_PATH + '/src/**/*.tsx']
|
2023-09-22 06:43:25 +03:00
|
|
|
export const important = `:is(.enso-dashboard, .enso-chat)`
|
2023-04-13 18:17:32 +03:00
|
|
|
export const theme = {
|
|
|
|
extend: {
|
|
|
|
colors: {
|
|
|
|
/** The default color of all text. */
|
2023-08-18 14:23:27 +03:00
|
|
|
// This should be named "regular".
|
2023-08-01 12:32:32 +03:00
|
|
|
primary: 'rgba(0, 0, 0, 0.60)',
|
2023-08-18 14:23:27 +03:00
|
|
|
'not-selected': 'rgba(0, 0, 0, 0.40)',
|
|
|
|
'icon-selected': 'rgba(0, 0, 0, 0.50)',
|
|
|
|
'icon-not-selected': 'rgba(0, 0, 0, 0.30)',
|
2023-07-18 14:23:41 +03:00
|
|
|
chat: '#484848',
|
|
|
|
'ide-bg': '#ebeef1',
|
|
|
|
'ide-bg-dark': '#d0d3d6',
|
2023-07-26 15:59:48 +03:00
|
|
|
selected: 'rgba(255, 255, 255, 0.40)',
|
2023-04-14 14:37:23 +03:00
|
|
|
// Should be `#3e515f14`, but `bg-opacity` does not work with RGBA.
|
|
|
|
label: '#f0f1f3',
|
|
|
|
help: '#3f68ce',
|
2023-08-10 12:09:31 +03:00
|
|
|
invite: '#0e81d4',
|
2023-08-01 12:32:32 +03:00
|
|
|
cloud: '#0666be',
|
2023-08-28 21:01:40 +03:00
|
|
|
share: '#64b526',
|
|
|
|
inversed: '#ffffff',
|
Async execution controls (#7592)
- Closes https://github.com/enso-org/cloud-v2/issues/619
- Async execution controls
# Important Notes
There is no design for this, as such, implementation details use placeholder designs.
- The context menu uses a play icon. An icon similar in style to the "copy" icon *may* work to represent "run in background", but it may be difficult to visually represent that it is being run in the background, without obstructing it with a foreground window
- The icon for projects being run in the background have a green tint, to distinguish them from projects that will be (or are currently) opened in the editor.
- this will ***almost certainly*** need to be replaced with a proper design
- This *may* also make sense for the local backend, *however* as I don't know whether there is a way to access the completion progress of execution from the PM API, local backend support is currently *not* implemented in this PR.
- On a related note: as far as I am aware, there is also no such endpoint for the cloud backend. However, support for async execution was recently added, so I am adding the basic functionality corresponding to the `executeAsync` project state.
- Whether a project is being run in the background is currently lost on refresh. This is because the async execution state is currently not sent by the backend.
- Placeholder shortcuts have been added (Shift+Enter - Cmd+Enter is already taken by the "share" action, and shift+double click). These are totally optional, and can easily be removed.
2023-09-07 15:36:03 +03:00
|
|
|
green: '#3e8b29',
|
2023-08-10 12:09:31 +03:00
|
|
|
delete: 'rgba(243, 24, 10, 0.87)',
|
2023-08-31 18:03:39 +03:00
|
|
|
v3: '#252423',
|
|
|
|
youtube: '#c62421',
|
|
|
|
discord: '#404796',
|
2023-08-10 12:09:31 +03:00
|
|
|
dim: 'rgba(0, 0, 0, 0.25)',
|
|
|
|
frame: 'rgba(255, 255, 255, 0.40)',
|
|
|
|
'frame-selected': 'rgba(255, 255, 255, 0.70)',
|
2023-07-26 15:59:48 +03:00
|
|
|
'tag-text': 'rgba(255, 255, 255, 0.90)',
|
|
|
|
'tag-text-2': 'rgba(0, 0, 0, 0.60)',
|
|
|
|
'permission-owner': 'rgba(236, 2, 2, 0.70)',
|
|
|
|
'permission-admin': 'rgba(252, 60, 0, 0.70)',
|
|
|
|
'permission-edit': 'rgba(255, 138, 0, 0.90)',
|
|
|
|
'permission-read': 'rgba(152, 174, 18, 0.80)',
|
|
|
|
'permission-docs': 'rgba(91, 8, 226, 0.64)',
|
2023-08-10 12:09:31 +03:00
|
|
|
'permission-exec': 'rgba(236, 2, 2, 0.70)',
|
2023-07-26 15:59:48 +03:00
|
|
|
'permission-view': 'rgba(0, 0, 0, 0.10)',
|
2023-07-18 14:23:41 +03:00
|
|
|
'call-to-action': '#fa6c08',
|
2023-08-10 18:31:53 +03:00
|
|
|
'black-a5': 'rgba(0, 0, 0, 0.05)',
|
|
|
|
'black-a10': 'rgba(0, 0, 0, 0.10)',
|
|
|
|
'black-a16': 'rgba(0, 0, 0, 0.16)',
|
|
|
|
'black-a30': 'rgba(0, 0, 0, 0.30)',
|
|
|
|
'black-a50': 'rgba(0, 0, 0, 0.50)',
|
2023-07-18 14:23:41 +03:00
|
|
|
'gray-350': '#b7bcc5',
|
2023-04-13 18:17:32 +03:00
|
|
|
},
|
|
|
|
fontSize: {
|
2023-08-01 12:32:32 +03:00
|
|
|
xs: '0.71875rem',
|
2023-08-10 12:09:31 +03:00
|
|
|
sm: '0.8125rem',
|
2023-08-31 18:03:39 +03:00
|
|
|
xl: '1.1875rem',
|
|
|
|
'4xl': '2.375rem',
|
2023-04-13 18:17:32 +03:00
|
|
|
},
|
2023-08-10 18:31:53 +03:00
|
|
|
lineHeight: {
|
2023-08-28 21:01:40 +03:00
|
|
|
'144.5': '144.5%',
|
2023-08-10 18:31:53 +03:00
|
|
|
'170': '170%',
|
|
|
|
},
|
2023-04-14 14:37:23 +03:00
|
|
|
spacing: {
|
2023-08-01 12:32:32 +03:00
|
|
|
'0.75': '0.1875rem',
|
2023-08-28 21:01:40 +03:00
|
|
|
'1.25': '0.3125rem',
|
2023-07-26 15:59:48 +03:00
|
|
|
'1.75': '0.4375rem',
|
2023-08-01 12:32:32 +03:00
|
|
|
'2.25': '0.5625rem',
|
2023-07-26 15:59:48 +03:00
|
|
|
'3.25': '0.8125rem',
|
2023-08-31 18:03:39 +03:00
|
|
|
'3.5': '0.875rem',
|
2023-08-28 21:01:40 +03:00
|
|
|
'4.5': '1.125rem',
|
2023-08-01 12:32:32 +03:00
|
|
|
'4.75': '1.1875rem',
|
2023-07-26 15:59:48 +03:00
|
|
|
'5.5': '1.375rem',
|
2023-08-10 12:09:31 +03:00
|
|
|
'6.5': '1.625rem',
|
2023-07-26 15:59:48 +03:00
|
|
|
'9.5': '2.375rem',
|
2023-08-31 18:03:39 +03:00
|
|
|
'9.75': '2.4375rem',
|
2023-08-10 12:09:31 +03:00
|
|
|
'13': '3.25rem',
|
2023-07-26 15:59:48 +03:00
|
|
|
'18': '4.5rem',
|
2023-08-31 18:03:39 +03:00
|
|
|
'25': '6.25rem',
|
2023-07-26 15:59:48 +03:00
|
|
|
'29': '7.25rem',
|
|
|
|
'30': '7.5rem',
|
2023-08-10 12:09:31 +03:00
|
|
|
'30.25': '7.5625rem',
|
2023-07-26 15:59:48 +03:00
|
|
|
'42': '10.5rem',
|
2023-08-31 18:03:39 +03:00
|
|
|
'45': '11.25rem',
|
|
|
|
'51': '12.75rem',
|
2023-08-21 18:05:57 +03:00
|
|
|
'51.5': '12.875rem',
|
2023-07-26 15:59:48 +03:00
|
|
|
'54': '13.5rem',
|
2023-08-10 18:31:53 +03:00
|
|
|
'57.5': '14.375rem',
|
2023-08-18 13:25:22 +03:00
|
|
|
'62': '15.5rem',
|
2023-07-18 14:23:41 +03:00
|
|
|
'70': '17.5rem',
|
2023-07-26 15:59:48 +03:00
|
|
|
'83.5': '20.875rem',
|
2023-08-01 12:32:32 +03:00
|
|
|
'98.25': '24.5625rem',
|
2023-08-10 12:09:31 +03:00
|
|
|
'112.5': '28.125rem',
|
|
|
|
'115.25': '28.8125rem',
|
2023-04-14 14:37:23 +03:00
|
|
|
'140': '35rem',
|
2023-07-26 15:59:48 +03:00
|
|
|
'10lh': '10lh',
|
2023-04-14 14:37:23 +03:00
|
|
|
},
|
2023-07-12 11:12:39 +03:00
|
|
|
minWidth: {
|
2023-09-29 16:40:02 +03:00
|
|
|
'31.5': '7.875rem',
|
2023-08-28 21:01:40 +03:00
|
|
|
'33.25': '8.3125rem',
|
2023-07-12 11:12:39 +03:00
|
|
|
'40': '10rem',
|
2023-08-28 21:01:40 +03:00
|
|
|
'61.25': '15.3125rem',
|
2023-07-26 15:59:48 +03:00
|
|
|
'80': '20rem',
|
2023-07-12 11:12:39 +03:00
|
|
|
'96': '24rem',
|
|
|
|
},
|
2023-07-26 15:59:48 +03:00
|
|
|
opacity: {
|
|
|
|
'1/3': '.33333333',
|
|
|
|
},
|
2023-08-18 08:04:51 +03:00
|
|
|
zIndex: {
|
|
|
|
'1': '1',
|
2023-09-29 16:40:02 +03:00
|
|
|
'3': '3',
|
2023-08-18 08:04:51 +03:00
|
|
|
},
|
2023-07-26 15:59:48 +03:00
|
|
|
backdropBlur: {
|
|
|
|
xs: '2px',
|
|
|
|
},
|
2023-08-10 18:31:53 +03:00
|
|
|
borderWidth: { '0.5': '0.5px' },
|
2023-04-13 18:17:32 +03:00
|
|
|
boxShadow: {
|
2023-05-19 22:55:29 +03:00
|
|
|
soft: `0 0.5px 2.2px 0px #00000008, 0 1.2px 5.3px 0px #0000000b, \
|
|
|
|
0 2.3px 10px 0 #0000000e, 0 4px 18px 0 #00000011, 0 7.5px 33.4px 0 #00000014, \
|
|
|
|
0 18px 80px 0 #0000001c`,
|
2023-04-13 18:17:32 +03:00
|
|
|
},
|
|
|
|
animation: {
|
|
|
|
'spin-ease': 'spin cubic-bezier(0.67, 0.33, 0.33, 0.67) 1.5s infinite',
|
|
|
|
},
|
|
|
|
transitionProperty: {
|
2023-04-15 12:12:53 +03:00
|
|
|
width: 'width',
|
2023-04-13 18:17:32 +03:00
|
|
|
'stroke-dasharray': 'stroke-dasharray',
|
2023-07-18 14:23:41 +03:00
|
|
|
'grid-template-rows': 'grid-template-rows',
|
2023-04-13 18:17:32 +03:00
|
|
|
},
|
|
|
|
transitionDuration: {
|
2023-07-11 12:46:26 +03:00
|
|
|
'5000': '5000ms',
|
2023-04-13 18:17:32 +03:00
|
|
|
'90000': '90000ms',
|
|
|
|
},
|
2023-07-18 14:23:41 +03:00
|
|
|
gridTemplateRows: {
|
|
|
|
'0fr': '0fr',
|
|
|
|
'1fr': '1fr',
|
|
|
|
},
|
2023-06-30 16:59:34 +03:00
|
|
|
gridTemplateColumns: {
|
|
|
|
'fill-60': 'repeat(auto-fill, minmax(15rem, 1fr))',
|
2023-08-31 18:03:39 +03:00
|
|
|
'fill-75': 'repeat(auto-fill, minmax(18.75rem, 1fr))',
|
2023-06-30 16:59:34 +03:00
|
|
|
},
|
2023-04-13 18:17:32 +03:00
|
|
|
},
|
|
|
|
}
|