Tokens for terminal

pull/5756/head
Cagatay Civici 2024-05-09 22:36:40 +03:00
parent e8a1624292
commit 38767fd466
3 changed files with 25 additions and 7 deletions

View File

@ -2,13 +2,13 @@ import BaseStyle from 'primevue/base/style';
const theme = ({ dt }) => ` const theme = ({ dt }) => `
.p-terminal { .p-terminal {
height: 18rem; height: ${dt('terminal.height')};
overflow: auto; overflow: auto;
background: ${dt('terminal.background')}; background: ${dt('terminal.background')};
color: ${dt('terminal.color')}; color: ${dt('terminal.color')};
border: 1px solid ${dt('terminal.border.color')}; border: 1px solid ${dt('terminal.border.color')};
padding: 0.5rem 0.75rem; padding: ${dt('terminal.padding')};
border-radius: ${dt('border.radius.md')}; border-radius: ${dt('terminal.border.radius')};
} }
.p-terminal-prompt { .p-terminal-prompt {
@ -29,7 +29,7 @@ const theme = ({ dt }) => `
} }
.p-terminal-prompt-label { .p-terminal-prompt-label {
margin-right: 0.25rem; margin-right: ${dt('terminal.prompt.gap')};
} }
.p-terminal-input::-ms-clear { .p-terminal-input::-ms-clear {
@ -37,7 +37,7 @@ const theme = ({ dt }) => `
} }
.p-terminal-command-response { .p-terminal-command-response {
margin: 2px 0; margin: ${dt('terminal.command.response.margin')};
} }
`; `;

View File

@ -2,6 +2,15 @@ export default {
root: { root: {
background: '{form.field.background}', background: '{form.field.background}',
borderColor: '{form.field.border.color}', borderColor: '{form.field.border.color}',
color: '{form.field.color}' color: '{form.field.color}',
height: '18rem',
padding: '{form.field.padding.y} {form.field.padding.x}',
borderRadius: '{form.field.border.radius}'
},
prompt: {
gap: '0.25rem'
},
commandResponse: {
margin: '2px 0'
} }
}; };

View File

@ -2,6 +2,15 @@ export default {
root: { root: {
background: '{form.field.background}', background: '{form.field.background}',
borderColor: '{form.field.border.color}', borderColor: '{form.field.border.color}',
color: '{form.field.color}' color: '{form.field.color}',
height: '18rem',
padding: '{form.field.padding.y} {form.field.padding.x}',
borderRadius: '{form.field.border.radius}'
},
prompt: {
gap: '0.25rem'
},
commandResponse: {
margin: '2px 0'
} }
}; };