simian 0.1.1

A command-line tool for exploring and implementing Machine Learning algorithms in Rust.
Documentation
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --bg-color: #ffffff;
  --text-color: #111827;
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(0, 0, 0, 0.1);
  --accent-blue: #3b82f6;
  --accent-purple: #9333ea;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Fira Code', ui-monospace, monospace;
}

.dark {
  --bg-color: #0d1117;
  --text-color: rgba(255, 255, 255, 0.9);
  --glass-bg: rgba(30, 30, 30, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

.studio-container {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at top left,
      rgba(59, 130, 246, 0.05),
      transparent 40%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(147, 51, 234, 0.05),
      transparent 40%
    );
}

.studio-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.studio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-box {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.header-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(to right, #60a5fa, #c084fc);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-right {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
}

.slate-editable {
  outline: none;
  min-height: 50vh;
}

.studio-heading {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.studio-paragraph {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.code-node-container {
  margin: 1.5rem 0;
  position: relative;
}

.code-editor-box {
  background: var(--glass-bg);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.code-editor-box:focus-within {
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
}

.code-editor-box.evaluating {
  border-color: var(--accent-purple);
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.4);
  animation: pulse-border 1.5s infinite;
}

@keyframes pulse-border {
  0% {
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.6);
  }
  100% {
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.2);
  }
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--glass-border);
}

.code-lang {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.code-status {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
}

.code-content {
  padding: 1rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #d4d4d4;
  outline: none;
}

.code-content code {
  outline: none;
}

.code-output {
  margin-top: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid var(--glass-border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.stderr {
  color: #f87171;
}

/* PrismJS Syntax Highlighting Tokens */
.token-keyword {
  color: #ff7b72;
}
.token-function {
  color: #d2a8ff;
}
.token-string {
  color: #a5d6ff;
}
.token-number {
  color: #79c0ff;
}
.token-comment {
  color: #8b949e;
  font-style: italic;
}
.token-punctuation {
  color: rgba(255, 255, 255, 0.7);
}
.token-operator {
  color: #79c0ff;
}
.token-class-name {
  color: #f0883e;
}
.token-boolean {
  color: #79c0ff;
}
.token-macro {
  color: #d2a8ff;
}

.stdout {
  color: #34d399;
}

.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}